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.
-
arnir
- Competition winner
- Posts: 154
- Joined: Sat Jan 20, 2007 4:36 pm
- Location: Czech Republic
Post
by arnir »
hello
is any way how can I use this texture for sky in irrlicht?
thanks
programmer is bad designer
designer is bad programmer
-
freetimecoder
- Posts: 226
- Joined: Fri Aug 22, 2008 8:50 pm
-
Contact:
Post
by freetimecoder »
Use a 3D modeller to create a dome and then unwrap it and apply the texture.
Then load the model into irrlicht.
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
-
Contact:
Post
by hybrid »
Irrlicht has skydome built-in. Just check example 12 (press 's' to see the skydome), the code can be found in the example's main.cpp
-
kulesz
- Posts: 4
- Joined: Thu Feb 18, 2010 6:29 pm
Post
by kulesz »
The problem is, the example uses rectangular texture, like:
Not the round one like shown in the first post.
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
-
Contact:
Post
by hybrid »
Oh yes, now that you say it. Create a sphere, scale it by -1, use sphere mapping and draw the sphere like a skydome.