New terrain scene node
-
- Posts: 62
- Joined: Wed Jun 09, 2004 5:51 am
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Really good work! I'm very interested in this project! Will you release the source?
When do you think will it be possible, to set a floor texture (like in the Irrlicht Terrain Scene Node) under your great detail map implementation?
When do you think will it be possible, to set a floor texture (like in the Irrlicht Terrain Scene Node) under your great detail map implementation?
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 62
- Joined: Wed Jun 09, 2004 5:51 am
I will release the source when the node's ready (when im done making the triangle selector, making it eat less memory, and some bells and whistles).
As for texture, It's just a matter of changing the TCoords for each vertex (done at loading time), so that the terrain is rendered with the appropiate mapping, instead of just tiling it, like in the demo. The problem with this setup, is that for large maps, the texture tends to get all streched until it's barely recognizable, which I find very annoying. This problem also makes light maps look horrible if they're the same size as the original terrain, because the same diffuse color is added to the vertex * the size multiplier, so you can literally see each and every pixel there was on the light map
I'm also trying to learn about Cg programming (I know as little about this as I knew about terrain rendering a month ago) so as to try to use it to make te terrain less spiky and more rounded, so that it looks nicer, without adding all the cpu overhead adding extra vertices would make. I read somewhere that Cg is being implemented in Irrlicht, is it true?
As for texture, It's just a matter of changing the TCoords for each vertex (done at loading time), so that the terrain is rendered with the appropiate mapping, instead of just tiling it, like in the demo. The problem with this setup, is that for large maps, the texture tends to get all streched until it's barely recognizable, which I find very annoying. This problem also makes light maps look horrible if they're the same size as the original terrain, because the same diffuse color is added to the vertex * the size multiplier, so you can literally see each and every pixel there was on the light map
I'm also trying to learn about Cg programming (I know as little about this as I knew about terrain rendering a month ago) so as to try to use it to make te terrain less spiky and more rounded, so that it looks nicer, without adding all the cpu overhead adding extra vertices would make. I read somewhere that Cg is being implemented in Irrlicht, is it true?
1609 tris --- 369fps
NV35
(5900XT with 128 meg RAM)
NV35
(5900XT with 128 meg RAM)
-= Want your C code to control real life robots? www.users.on.net/~symes =-
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Will it be possible to set an Terrain texture and a detail texture, in your release version?
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact:
-
- Posts: 62
- Joined: Wed Jun 09, 2004 5:51 am
terrain texture i know what it is, detail texture? I'd have to learn about it first... but sure!
Right now I'm redoing the rendering function, because as it turns out, it was only giving 2 LODs, because it was not subdividing squares smaller than 4x4. This fix should take me 2-3 more days, then I can set out to work on the triangle selector, which should be fairly easy to create, and this detail map u guys are talking about
Right now I'm redoing the rendering function, because as it turns out, it was only giving 2 LODs, because it was not subdividing squares smaller than 4x4. This fix should take me 2-3 more days, then I can set out to work on the triangle selector, which should be fairly easy to create, and this detail map u guys are talking about
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
A Terrain texture is stretched all over the terrain, while a detail texture is layn above it (with transparence, of cause) to show... the details
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 62
- Joined: Wed Jun 09, 2004 5:51 am
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
hmm, perhaps Irrlicht 0.7 will help, otherwise you'll have to make a new terrain texture, manuell, on which the detail map is blended on the stretched terrain texture.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 62
- Joined: Wed Jun 09, 2004 5:51 am
You know, I'd really like to do that, except that I still dont understand the lokc and unlock method used for images and textures (Im probably just retarded in that way lol).
EDIT: After thinking about it a lil bit Peter, if I blended the detail texture with the strecht texture, wouldn't the detail texture get stretched?
EDIT: After thinking about it a lil bit Peter, if I blended the detail texture with the strecht texture, wouldn't the detail texture get stretched?
Last edited by Asterisk Man on Sun Jul 11, 2004 4:40 am, edited 1 time in total.
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
No. Only the terrain texture is stretched. And the detail map is blendet over it, by repeating it.After thinking about it a lil bit Peter, if I blended the detail texture with the strecht texture, wouldn't the detail texture get stretched?
In the end, there's a very large terrain texture.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer