Make env on the objects ?
Make env on the objects ?
Can someone help me to make some basic environment effect on the objects ? I have no idea to how to make that. thx
I'll assume you mean at least fog, so I'll point you to some tutorials. Tutorials are, after all, best for when you have no idea how to do something.
http://irrlicht.sourceforge.net/tut011.html
http://irrlicht.sourceforge.net/tut008.html
That should cover what you're aiming for (specifically the first one, which contains fog).
http://irrlicht.sourceforge.net/tut011.html
http://irrlicht.sourceforge.net/tut008.html
That should cover what you're aiming for (specifically the first one, which contains fog).
No, is not fog.
Imagine for example a real car, ok ? its body have some type of environment reflection. That is a little shiny effect showind a static map we can make.
Of course i not plan to make environments as are showed on the Gran Turismo GT5 playstation 3 game. I only want to make a basic one.
is that posible with irrlicth ?
Imagine for example a real car, ok ? its body have some type of environment reflection. That is a little shiny effect showind a static map we can make.
Of course i not plan to make environments as are showed on the Gran Turismo GT5 playstation 3 game. I only want to make a basic one.
is that posible with irrlicth ?
Yeah, you can check out Christian Clavet's 'Level Demo' in the projects forum which used a reflection layer on a bus, though this was a pre-rendered reflection and didn't actually work too well when i saw it running.
You can also do dynamic reflections using RTT and possibly shaders.
Or are you more talking about specular highlights? Those can be set in the material parameters, though i've never really seens them give much effect...
You can also do dynamic reflections using RTT and possibly shaders.
Or are you more talking about specular highlights? Those can be set in the material parameters, though i've never really seens them give much effect...
OK... im definitely no expert in this... but just from cheking tutotial 11 and playing a little with the code u can figure out how to make textures have some reflection... im sure its probably not the best way to do it but u can try this in the tutorial 11 code:
change this:
to this:
just play with those values and see what happends... now comment the heightmap code... and see what happends(or just set the height to 0 like this:
)and see what happends...
hope it helps...
change this:
Code: Select all
room->getMaterial(0).MaterialTypeParam = 0.035f;
Code: Select all
room->getMaterial(0).MaterialTypeParam = 1.035f;
Code: Select all
driver->makeNormalMapTexture(normalMap, 0.0f);
hope it helps...
Yes, it is possible.
If you have a static camera, but you want to rotate the car, you can use a sphere map. You take 1 texture of the environment to be reflected and warp it (I'm quite sure there are plenty programs that do the warp for you). Then you set environment texture as a second texture for SPHERE_MAP material.
If you want to move the camera as well, you must use a cube texture and write your own shader (or find an existing one).
Anyway, google for "Evironment mapping", there are a few interesting articles.
If you have a static camera, but you want to rotate the car, you can use a sphere map. You take 1 texture of the environment to be reflected and warp it (I'm quite sure there are plenty programs that do the warp for you). Then you set environment texture as a second texture for SPHERE_MAP material.
If you want to move the camera as well, you must use a cube texture and write your own shader (or find an existing one).
Anyway, google for "Evironment mapping", there are a few interesting articles.
The cake is a lie.
Check this tutorial out:
http://irrlicht3d.org/wiki/index.php?n= ... ByOmaremad
http://irrlicht3d.org/wiki/index.php?n= ... ByOmaremad
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net