3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Surprised about dynamic shadows in 3DRad?  (Read 143 times)

« on: June 06, 2014, 08:00:16 PM »

https://www.youtube.com/watch?v=6_IOCF5e_Xc

Write a little Editor to add unvisible objects (imposters) which cast shadows to the most important bones - save those settings (Arrays) via script to a file named Shadow.txt inside the folder where the model is located.
Load the shadow.txt files at start of the game inside the if iInitializing() block and initialize the shadows (imposters - find bone position, set position, rotation, scale) for each skinmesh.
That's all.

Unfortunately you have to edit the shadows of every model by hand - add, turn and scale until it fits to the model.
It works best, if the models are not frame scaled, but vertices and bone positions represent the positions in meters already. If scaling is done on the fly while the animation runs (visible inside the .x-file animation keys), the chances are high, that not all shadows are displayed at the right positions on the ground.
As higher the angle of the sun as better the effect.

Don't forget to add the shadow files to the compiled program inside the right folders after compilation. The compiler does not know about them. You must do that yourself. Or if you are a programmer you can write a tool which checks if there are Shadow.txt files inside your original Folders and copies them to the compiled program if the skinmesh is inside your compiled program.
« Last Edit: June 07, 2014, 10:47:27 AM by Leonopteryx »
Using 3D Rad 7.22
« Reply #1 on: June 06, 2014, 09:16:50 PM »
That's a great dinosaur!
« Reply #2 on: June 07, 2014, 11:58:17 AM »
Being an animal lover not to thrilled if they actually started fighting and have blood and guts...

But as an animated character and seeming to interact with AI.. very nice job..

Would be fantastic if this was godzilla rampaging through a city :P
« Reply #3 on: June 08, 2014, 03:51:14 PM »
The TRex is made by 3DFoin - nice people producing nice models for a very good price.  :)

Using 3D Rad 7.22
« Reply #4 on: June 10, 2014, 09:48:21 AM »
Hello Leonopteryx, amazing job, congratulations, greetings - TheHades24
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
Pages: [1]