# 3D

**URL:** https://forum.castle-engine.io/c/3d/19.md?page=1

[Latest](https://forum.castle-engine.io/latest.md) · [Categories](https://forum.castle-engine.io/categories.md)

**Page:** 2

---

## [Get 2D screen coordinates from a 3D object translation](https://forum.castle-engine.io/t/get-2d-screen-coordinates-from-a-3d-object-translation/1934)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 2\
**Last updated:** [June 8, 2025, 2:39pm UTC](https://forum.castle-engine.io/t/get-2d-screen-coordinates-from-a-3d-object-translation/1934 "2025-06-08T14:39:03Z")

</div>

Hi all! I made speech bubbles as TCastleUserInterface class. Now I want to make this bubbles follow to the 3D character across the screen. As I understand, I need to take TVector3 coordinates, for example, of the chara…

---

## [\[solved\] Making Models semi-transparent. Setting baseColorFactor+alphaMode (in GLTF material) via code](https://forum.castle-engine.io/t/solved-making-models-semi-transparent-setting-basecolorfactor-alphamode-in-gltf-material-via-code/1912)

<div class="topic-metadata">

**Author:** [@phomm](https://forum.castle-engine.io/u/phomm)\
**Replies:** 8\
**Last updated:** [June 2, 2025, 10:29am UTC](https://forum.castle-engine.io/t/solved-making-models-semi-transparent-setting-basecolorfactor-alphamode-in-gltf-material-via-code/1912 "2025-06-02T10:29:13Z")

</div>

I want to make my models conditionally semi-transparent, so I could see other objects through them. I split this big task into two parts, the second part should be trivial, esp. with SphereCast introduced, I will cast a…

---

## [\[solved\] Unknow Format loading in a TcastleScene](https://forum.castle-engine.io/t/solved-unknow-format-loading-in-a-tcastlescene/1916)

<div class="topic-metadata">

**Author:** [@BlueIcaro](https://forum.castle-engine.io/u/BlueIcaro)\
**Replies:** 3\
**Last updated:** [May 20, 2025, 4:01pm UTC](https://forum.castle-engine.io/t/solved-unknow-format-loading-in-a-tcastlescene/1916 "2025-05-20T16:01:12Z")

</div>

Hello, I trying to load a glf file using code, But I got following code: procedure TmainForm.Button1Click(Sender: TObject); var Robot: TCastleScene; s, path: string; begin Robot := TCastleScene.Create(Self); s := …

---

## [2 glsl questions + 1 non glsl question](https://forum.castle-engine.io/t/2-glsl-questions-1-non-glsl-question/1870)

<div class="topic-metadata">

**Author:** [@edj](https://forum.castle-engine.io/u/edj)\
**Replies:** 6\
**Last updated:** [April 20, 2025, 6:27pm UTC](https://forum.castle-engine.io/t/2-glsl-questions-1-non-glsl-question/1870 "2025-04-20T18:27:34Z")

</div>

redacted. \[answered for myself, works fine to read the fs and vs files with TTextReader\] What is meant by ‘fragment’ shading vs ‘vertex’ shading? Is that Texture vs Geometry? Or is vertex shading what is giving me the…

---

## [\[Solved\] How to check if an object is in the view?](https://forum.castle-engine.io/t/solved-how-to-check-if-an-object-is-in-the-view/1844)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 7\
**Last updated:** [March 30, 2025, 9:26pm UTC](https://forum.castle-engine.io/t/solved-how-to-check-if-an-object-is-in-the-view/1844 "2025-03-30T21:26:57Z")

</div>

Hello! I’m trying to find out how to detect if an object (like a TCastleScene or any TCastleTranform) is in field of vision of the viewport (TCastleViewport or its TCastleCamera). How do I do that? PS: Maybe this solu…

---

## [More information about the shader language](https://forum.castle-engine.io/t/more-information-about-the-shader-language/1820)

<div class="topic-metadata">

**Author:** [@LevTails](https://forum.castle-engine.io/u/LevTails)\
**Replies:** 1\
**Last updated:** [March 12, 2025, 9:51am UTC](https://forum.castle-engine.io/t/more-information-about-the-shader-language/1820 "2025-03-12T09:51:43Z")

</div>

Hello. Please forgive me for my English. I have not developed anything on this engine yet and am just looking at it, and I also remember Pascal, which I have not used for a long time. I have not developed games before ei…

---

## [RawKee X3D Exporter Plugin for Maya - Repost](https://forum.castle-engine.io/t/rawkee-x3d-exporter-plugin-for-maya-repost/1804)

<div class="topic-metadata">

**Author:** [@aaron](https://forum.castle-engine.io/u/aaron)\
**Replies:** 4\
**Last updated:** [March 5, 2025, 9:05pm UTC](https://forum.castle-engine.io/t/rawkee-x3d-exporter-plugin-for-maya-repost/1804 "2025-03-05T21:05:33Z")

</div>

I am developing a plugin for Maya to export X3D content (called RawKee). I am looking for Maya content (which I am willing to purchase) to test the exporter. Initially, I’m looking for Maya content that uses PBR texture …

---

## [Playing Effekseer Effects Exported from Effekseer Editor v1.51](https://forum.castle-engine.io/t/playing-effekseer-effects-exported-from-effekseer-editor-v1-51/1810)

<div class="topic-metadata">

**Author:** [@hal09](https://forum.castle-engine.io/u/hal09)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 4:06am UTC](https://forum.castle-engine.io/t/playing-effekseer-effects-exported-from-effekseer-editor-v1-51/1810 "2025-03-04T04:06:13Z")

</div>

Hello, When I load and play .efk files downloaded from the internet, everything works fine. However, when I export an .efk file from Effekseer Editor v1.51, I see nothing on the screen, even though all related images an…

---

## [No shadows = 4x(at least) FPS?](https://forum.castle-engine.io/t/no-shadows-4x-at-least-fps/1800)

<div class="topic-metadata">

**Author:** [@thaSpider](https://forum.castle-engine.io/u/thaSpider)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 3:36pm UTC](https://forum.castle-engine.io/t/no-shadows-4x-at-least-fps/1800 "2025-02-27T15:36:07Z")

</div>

Hello all, First of all thank you for this game engine, I find it generally very well made and think this is an interesting project. However I was quite surprised when I ran the example “creature\_behaviors” and saw tha…

---

## [TransformUnderMouse with Alpha pixels check for quad-based Transforms](https://forum.castle-engine.io/t/transformundermouse-with-alpha-pixels-check-for-quad-based-transforms/1494)

<div class="topic-metadata">

**Author:** [@phomm](https://forum.castle-engine.io/u/phomm)\
**Replies:** 9\
**Last updated:** [February 10, 2025, 2:49pm UTC](https://forum.castle-engine.io/t/transformundermouse-with-alpha-pixels-check-for-quad-based-transforms/1494 "2025-02-10T14:49:00Z")

</div>

Hi, All ! Happy new year! I want to make precise Mouse picking of quad based Transforms - like TCastleImageTransform, or TCastleScene with 2d sprite, in this case TransformUnderMouse performs hit-test over whole quad (g…

---

## [Convenient way to determine exact point under mouse](https://forum.castle-engine.io/t/convenient-way-to-determine-exact-point-under-mouse/791)

<div class="topic-metadata">

**Author:** [@Hertsog](https://forum.castle-engine.io/u/Hertsog)\
**Replies:** 29\
**Last updated:** [January 27, 2025, 3:15pm UTC](https://forum.castle-engine.io/t/convenient-way-to-determine-exact-point-under-mouse/791 "2025-01-27T15:15:30Z")

</div>

I am trying to find the best way to determine the exact point coordinates under mouse cursor in 3D world. My current solution was the following. I created a new function TCastleViewport.HitUnderMouse based on TCastleVie…

---

## [How to in-code copying design of UI element?](https://forum.castle-engine.io/t/how-to-in-code-copying-design-of-ui-element/1425)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 5:49pm UTC](https://forum.castle-engine.io/t/how-to-in-code-copying-design-of-ui-element/1425 "2024-11-13T17:49:07Z")

</div>

Hello coders! I made beautiful button in Castle Editor: Is there an easy way to copy parameters for a newly created in code button from an existing one? Or I need to make a special function for coping needed for me …

---

## [How to сollect ALL items of the same type in the scene?](https://forum.castle-engine.io/t/how-to-ollect-all-items-of-the-same-type-in-the-scene/1421)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 8\
**Last updated:** [November 9, 2024, 1:49am UTC](https://forum.castle-engine.io/t/how-to-ollect-all-items-of-the-same-type-in-the-scene/1421 "2024-11-09T01:49:49Z")

</div>

Hello again! Help please solve the problem: For example, I have a scene like this with UI: How can I collect all TCastleRectangleControl by pascal code?

---

## [Can't rotate view with the Rotate Mode](https://forum.castle-engine.io/t/cant-rotate-view-with-the-rotate-mode/1368)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 7\
**Last updated:** [October 6, 2024, 12:21pm UTC](https://forum.castle-engine.io/t/cant-rotate-view-with-the-rotate-mode/1368 "2024-10-06T12:21:05Z")

</div>

Hello! Today I updated the CGE and faced with the problem: in the TCastleWalkNavigation with mdRotate mode and MouseLook is disabled, the camera does not rotate when I holding the mouse button. My test project: rotat…

---

## [Behaviors Billboard in multiple views](https://forum.castle-engine.io/t/behaviors-billboard-in-multiple-views/1371)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 2\
**Last updated:** [September 30, 2024, 8:57pm UTC](https://forum.castle-engine.io/t/behaviors-billboard-in-multiple-views/1371 "2024-09-30T20:57:40Z")

</div>

I use TCastleImageTransform with Billboard Behaviors for the viewers of the rally race. Billboard in local multiplayer mode (2 viewports) seems to be not correct. The image in viewport 1 turns to the direction of viewp…

---

## [I can't rotate this box](https://forum.castle-engine.io/t/i-cant-rotate-this-box/1311)

<div class="topic-metadata">

**Author:** [@BlueIcaro](https://forum.castle-engine.io/u/BlueIcaro)\
**Replies:** 3\
**Last updated:** [September 18, 2024, 12:52am UTC](https://forum.castle-engine.io/t/i-cant-rotate-this-box/1311 "2024-09-18T00:52:56Z")

</div>

Hello, I have the following scene And I wrote this in my code if Event.IsKey(keyA) then begin //VelocidadRotacion := 0.1; Tablero.Rotation:=Vector4(0,0,1,Pi/2); WritelnLog(Tablero.Rotation.ToString); Exit(True…

---

## [Performance with dynamic shadows](https://forum.castle-engine.io/t/performance-with-dynamic-shadows/1183)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 12\
**Last updated:** [September 8, 2024, 11:11am UTC](https://forum.castle-engine.io/t/performance-with-dynamic-shadows/1183 "2024-09-08T11:11:45Z")

</div>

I have now found that dynamic shadows have a very big impact on performance. For testing I created a terrain (1000x1000) with hightmap and walk navigation. I placed about 3500 TCastleScene and TCastleTransform on it. Di…

---

## [Poor jagged rendering with Lazarus in never version of Castle](https://forum.castle-engine.io/t/poor-jagged-rendering-with-lazarus-in-never-version-of-castle/1314)

<div class="topic-metadata">

**Author:** [@vid](https://forum.castle-engine.io/u/vid)\
**Replies:** 3\
**Last updated:** [August 28, 2024, 8:13am UTC](https://forum.castle-engine.io/t/poor-jagged-rendering-with-lazarus-in-never-version-of-castle/1314 "2024-08-28T08:13:41Z")

</div>

I have this issue with poor quality jagged renderings when I use Castle Gaming Engine in new versions of Lazarus. I’m not sure if this is related to being a newer version of Lazarus or because I have had to use a newer v…

---

## [How to enable texture anisotropic filtering via Castle Editor?](https://forum.castle-engine.io/t/how-to-enable-texture-anisotropic-filtering-via-castle-editor/1252)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 4\
**Last updated:** [August 21, 2024, 2:10pm UTC](https://forum.castle-engine.io/t/how-to-enable-texture-anisotropic-filtering-via-castle-editor/1252 "2024-08-21T14:10:12Z")

</div>

Hello! How to enable texture anisotropic filtering for specific objects via Castle Editor?

---

## [Conflict GeneratedShadowMap with OcclusionMap](https://forum.castle-engine.io/t/conflict-generatedshadowmap-with-occlusionmap/1306)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 5\
**Last updated:** [August 18, 2024, 10:07am UTC](https://forum.castle-engine.io/t/conflict-generatedshadowmap-with-occlusionmap/1306 "2024-08-18T10:07:46Z")

</div>

I found a cool looking way of lighting. Although it can only be enabled via \*.x3dv, or I haven’t found another way: SpotLight { location 0 0 0 cutOffAngle 1.25 direction 0 -1 0 intensity 5 ambientIntensity 0.4 rad…

---

## [Using static lightmap from texture](https://forum.castle-engine.io/t/using-static-lightmap-from-texture/917)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 6\
**Last updated:** [August 16, 2024, 3:37pm UTC](https://forum.castle-engine.io/t/using-static-lightmap-from-texture/917 "2024-08-16T15:37:55Z")

</div>

Hello everyone! Please help me understand. How to load a 3D model with a static lightmap from the Blender? I found this solution https://blenderartists.org/t/newbie-how-to-export-lightmap-for-gltf-2-0/1335887/7 But r…

---

## [Shadow ignors DistanceCulling](https://forum.castle-engine.io/t/shadow-ignors-distanceculling/670)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 14\
**Last updated:** [June 12, 2024, 1:31pm UTC](https://forum.castle-engine.io/t/shadow-ignors-distanceculling/670 "2024-06-12T13:31:55Z")

</div>

Hi, I have placed two scenes. One with DistanceCulling = 0 and one with DistanceCulling = 100. When the DistanceCulling starts, the scene (left house) becomes invisible, but the shadow is still visible. Maybe a bug…

---

## [Need Help with Final Line of Code Not Accepting a Period](https://forum.castle-engine.io/t/need-help-with-final-line-of-code-not-accepting-a-period/1217)

<div class="topic-metadata">

**Author:** [@JPF12141999](https://forum.castle-engine.io/u/JPF12141999)\
**Replies:** 16\
**Last updated:** [June 4, 2024, 9:36pm UTC](https://forum.castle-engine.io/t/need-help-with-final-line-of-code-not-accepting-a-period/1217 "2024-06-04T21:36:59Z")

</div>

Hi everyone, I have still been working diligently on fixing and updating my Toy Story 2 like game based on everyone’s feedback. I have added code to make the collectible objects disappear when you touch them fine, and …

---

## [Need Help Understanding How to Reset a Timer](https://forum.castle-engine.io/t/need-help-understanding-how-to-reset-a-timer/1219)

<div class="topic-metadata">

**Author:** [@JPF12141999](https://forum.castle-engine.io/u/JPF12141999)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 9:35pm UTC](https://forum.castle-engine.io/t/need-help-understanding-how-to-reset-a-timer/1219 "2024-06-04T21:35:10Z")

</div>

Hi everyone, This is still for my SpongeBob game project, and I used the TCastleTimer object type from the physics\_2d\_game\_sopwith project; my question is the project I am using doesn’t seem to have a way to reset the t…

---

## [Need Help with Physics Weirdness](https://forum.castle-engine.io/t/need-help-with-physics-weirdness/1186)

<div class="topic-metadata">

**Author:** [@JPF12141999](https://forum.castle-engine.io/u/JPF12141999)\
**Replies:** 3\
**Last updated:** [May 29, 2024, 4:01pm UTC](https://forum.castle-engine.io/t/need-help-with-physics-weirdness/1186 "2024-05-29T16:01:45Z")

</div>

Hi everyone, I didn’t do it for every single item of my project yet, still working on my game where you play as Sandy Cheeks from SpongeBob in Toy Story 2, But after I used a single Scene and not a Transform for my pla…

---

## [Is there a way to know if an animation is in play status?](https://forum.castle-engine.io/t/is-there-a-way-to-know-if-an-animation-is-in-play-status/1207)

<div class="topic-metadata">

**Author:** [@SalvoDev35](https://forum.castle-engine.io/u/SalvoDev35)\
**Replies:** 3\
**Last updated:** [May 24, 2024, 2:31pm UTC](https://forum.castle-engine.io/t/is-there-a-way-to-know-if-an-animation-is-in-play-status/1207 "2024-05-24T14:31:23Z")

</div>

I’m creating a first-person 3D action adventure. My character has a sword. I created 2 animations for the sword, one for idle (state 0) and one for attack (state 1). I have a method that changes the state on mouse click…

---

## [How to change the intensity of shadows for directional light](https://forum.castle-engine.io/t/how-to-change-the-intensity-of-shadows-for-directional-light/1202)

<div class="topic-metadata">

**Author:** [@SalvoDev35](https://forum.castle-engine.io/u/SalvoDev35)\
**Replies:** 2\
**Last updated:** [May 22, 2024, 6:11am UTC](https://forum.castle-engine.io/t/how-to-change-the-intensity-of-shadows-for-directional-light/1202 "2024-05-22T06:11:01Z")

</div>

Hi everyone, I’m new to using Castle Game Engine. For the moment I’m not creating any game in particular but I’m just doing some tests. I have a problem with shadows. once the directional light is placed it projects sha…

---

## [Multiple viewports and sound](https://forum.castle-engine.io/t/multiple-viewports-and-sound/1127)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 13\
**Last updated:** [May 15, 2024, 1:38pm UTC](https://forum.castle-engine.io/t/multiple-viewports-and-sound/1127 "2024-05-15T13:38:26Z")

</div>

Actually I am experimenting with a rallye game for 2 player local. Input over keyboard with WASD for player 1 and arrow-keys for player 2. First problem: I use an effect from CastleEffekseer and I am not able to make th…

---

## [Need Help Understanding how to Assign a Transform as an Avatar of a Third Person Navigation Camera, After Following Instructions](https://forum.castle-engine.io/t/need-help-understanding-how-to-assign-a-transform-as-an-avatar-of-a-third-person-navigation-camera-after-following-instructions/1144)

<div class="topic-metadata">

**Author:** [@JPF12141999](https://forum.castle-engine.io/u/JPF12141999)\
**Replies:** 60\
**Last updated:** [May 8, 2024, 7:00pm UTC](https://forum.castle-engine.io/t/need-help-understanding-how-to-assign-a-transform-as-an-avatar-of-a-third-person-navigation-camera-after-following-instructions/1144 "2024-05-08T19:00:31Z")

</div>

Hi everyone, I made sure to follow the instructions given carefully and calmly to me earlier, about how to assign a Transform object specifically as a target of a third person camera and not just one Scene, and I do not…

---

## [Rotation from other point not from origin](https://forum.castle-engine.io/t/rotation-from-other-point-not-from-origin/1157)

<div class="topic-metadata">

**Author:** [@BlueIcaro](https://forum.castle-engine.io/u/BlueIcaro)\
**Replies:** 3\
**Last updated:** [April 26, 2024, 6:57am UTC](https://forum.castle-engine.io/t/rotation-from-other-point-not-from-origin/1157 "2024-04-26T06:57:41Z")

</div>

Hello, I have a GLF file, It’s a industrial robot, as you can see. When I try to rotate the axis 2, this Transforms rotates from origin. I want to rotate from the “original” rotation point of this axis. How can I do it?…

[Previous page](https://forum.castle-engine.io/c/3d/19.md)

[Next page](https://forum.castle-engine.io/c/3d/19.md?page=2)
