jPCT-AE - a 3d engine for Android > Support

multiple lights

(1/3) > >>

kupiecu:
Hello.  :)
I found for solution of my problem but I don't know still. Is it possible samething like "multiple lights" in jpct-ae?
ex:
http://commons.wikimedia.org/wiki/File:Subway_lights_in_tunnel.JPG
or
http://www.creativecrash.com/system/photos/000/174/605/174605/big/Guest_room_001_1.jpg?
I was add two light to world, but I see only one. .

Wolf17:
   Yes, you can do that! Possible solutions are-->
1 .You can use your own lighting shaders.
2 . If Your scene is static and does not need dynamic lighting , you can use easy tricks so that you can fake the lighting effects by using lightmaps. This uses multi-texturing approach. Check this for reference - http://www.jpct.net/forum2/index.php/topic,3451.msg24809.html#msg24809 
3.  You can consider to bake your lightmap and colors to a single texture image. This is quite easy and my preferred way too . You can easily obtain these textures from blender .There are plenty of tutorials for the same.
for example-
This is the texture with lighting patterns and colors-

And this the .3ds model on which above texture is applied ,ready to load in jpct-ae -

kupiecu:
I write what i want. I have a "room" model, which i load to world. I move a camera, and object isn't move. And i want add to room 2 light (ex. one on ceiling, and other to wall). I want 4 options dor this. No lights, 1 lights on, 2 lights on, and 1 and 2 lights on together. So if I think about 2, 3 your proposytion I must have 4 lights map? And where I found samething about writing shader (hmm in open gl? ) and how merge open gl with jpct.
Thanks for your post, but I'm begginer , and I still have no idea.

EgonOlsen:
I'm not 100% sure what your actual problem is. You can add multiple lights and they will all have an effect on your scene...but maybe not in the way you expect them to have. Maybe two screen shots for comparison might help...

kupiecu:
I'm surprised. I think that I do not have big demands, so probably something I'm doing wrong. I have to go, but when I get home that I edit this post, I'll post my code and screens. :)

Navigation

[0] Message Index

[#] Next page

Go to full version