sky box question

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
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

sky box question

Post by juliusctw »

Hello
Right now when i create the skybox using the standard method, the skybox moves with the character, and the character is always in the center of the skybox, what if i don't want my camera always in the center but lower, this way i can see more of the skybox instead of just half? i checked out the API, it iddn't seem to give that option, is that true?
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

create a box, invert the normals, texture with the skybox images accordingly, load it and scale to taste
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

I don't think you can scale them

Post by juliusctw »

Hello my problem with the sky is not the inversion, my sky is seamless

right now, the camera is designed to be in the center of the box, i want to know if i can shift the camera down so the camera is closer to the bottom instead of being in the center.

i think i might have to touch irrlicht for this
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

I think he is suggesting that you not use the skybox scenenode but create your own skybox model and load it in as a seperate model, that way you can move the "skybox" around anyway you wish, but then again I could be wrong.
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

Exactly.
The SkyBox by its nature, is just a background that stays put.
If you wanna be in a different position relative to the SkyBox, I'm saying you'll prolly have to do it as a mesh.
However, to get it big enough to still be seen as the sky, you may have to scale it quite large, possibly to the point that you would need to adjust the camera's far clipping plane so it doesn't disappear.

good luck
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
Havok
Posts: 12
Joined: Thu Mar 30, 2006 5:43 pm

Post by Havok »

delete
Last edited by Havok on Thu Nov 20, 2014 3:12 pm, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Irrlicht is using a 3d skybox. It is a cube with normals targetting inwards. Since the skybox is an ISceneNode why not use setPosition? If this does not work I'd suggest to add and expose a matrix and add the matrix transformation before rendering the skybox instead of doing everything from scratch.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I think moving the box up would ruin the seamless effect between the walls and floor. you'd have to render the skybox textures with the camera frustum wider/taller on the bottom view than at the top and the sides, and then line it all up in irrlicht. sound like a lot more trouble than its worth
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

wow, that's complicated

Post by juliusctw »

thanks everybody

i wanted to keep my frustrum short, so creating my own skybox is out of the question,

the other suggestions sounded rather difficult
:roll: , maybe i should just be happy with what i have :)
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

alternately, if you just wanna place the camera lower, then repaint your skybox with photoshop or gimp or whatever, riaing the ground in the images.
If you are adept with 2dCG, it wouldn't be that tough to keep it seamless.
Just a thought.
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

i'm all out

Post by juliusctw »

hello

thanks for the suggestion, i don't have a fps type camer, i have my own which tracks a walking character, so i can't place the camera lower

it'l ok, what i have is good enough :wink: thanks everybody
Post Reply