Some questions about mapping and camera

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
tzzm
Posts: 2
Joined: Thu Mar 18, 2010 9:15 pm

Some questions about mapping and camera

Post by tzzm »

Hello

I am to write a 3D game and I chosed Irrlicht to do it. I think it's not necessary to explain the whole idea here, so I will just ask:

1. Is it possible to create a spherical .bsp map? Is it possible to apply shaders to it (for example to make the whole map look like a glass ball)?

2. How do I "attach" my camera to the map's walls so that it can't move off the walls? To make it more understandable, imagine an insect walking on the walls, floor and ceiling of your room and being unable to fly. :)

Thanks in advance.
Zeus
Posts: 24
Joined: Sun Dec 13, 2009 1:03 pm
Location: Germany :P

Post by Zeus »

Hello ...

to your first question: i believ that the tutorial PerPixelLighning could help you

to your second question: i think that there is no posibility for irrlicht to do that ... you have to impliment it by your own ... maybe irrlicht could help you with the collisons ... but the rest (reactions to the collisions) is up to you ...

regards Zeus
Is there any posible answer ... i'm sick of it ...

http://irrlicht.sourceforge.net/phpBB2/ ... 919#215919

thanks ...
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

As for the walking on walls thing, just cast a ray from the opposite of your camera's up vector, set it's position to where the ray collides, and rotate the camera so it's up vector is the colliding triangle's normal.
tzzm
Posts: 2
Joined: Thu Mar 18, 2010 9:15 pm

Post by tzzm »

Ok, thanks for your answers. I don't understand them yet but hopefully they will be very useful in the nearest future. Thanks one more time.
Post Reply