Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Phaelax and Lee Matrix functions media?

Author
Message
ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 11th Nov 2005 21:29 Edited at: 11th Nov 2005 21:30
I just found this thread with the extra matrix commands...
http://forum.thegamecreators.com/?m=forum_view&t=32935&b=6
Does anyone have a copy of these images that were made for it, that you can link me to-

load image "terrainsand.bmp", 1
load image "terrainheightmap.bmp", 2
load image "terraincolormap.bmp", 3
load image "terrainalphamap.bmp", 4

I am guessing I have another skybox here somewhere, but there is reference to this one also...
load object "terrainskybox.x", 2


Btw...
On the last page there is a reference to, I think they are two more functions. Can someone tell me what a "nomalize matrix function" is supposed to do?

THX
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 11th Nov 2005 21:41
It's good but the thread is a bit old might come in use

ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 12th Nov 2005 03:49 Edited at: 12th Nov 2005 03:55
Sorry, That's not helpfull...

I need to know if there is any specific colors needed for the heightmap, color map and alpha map...

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Nov 2005 07:51 Edited at: 12th Nov 2005 07:54
Those media files were borrowed from VanB's holiday demo.

height maps and alpha maps are black & white images.

download media here

normalize function normalizes the terrain's normal vectors. This is used for shading. By default, all normals for each grid square are (0,1,0), that is pointing straight up. On a flat terrain object, this is fine as each square faces directly straight up. When you mold the terrain into a more realistic shape, the normals have to be update to indicate the direction the polygon is facing so that shading appears accurate.


Deadly Night Assassins
ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 12th Nov 2005 10:49
Excellent! Awesome! Thank you!

----------------------------------------


I'm hoping I can ask a few more questions...

1: on the last page of the post jwurmz added normalize texture, did you ever finish the list of commands and should I add these two?

2: Is there some way that I can manipulate the matrix so that it waves like an ocean? (I'm talking about just big sine waves now.)

3: Can I add shaders to it, since it is now an object?

--------------

Thanks Phaelax, I really admire your skill there.

I have kind of a plan worked out if these can work together.
I think I may have even thought of a way to add boat ripples without having to change the main memblock(object matrix).
ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 13th Nov 2005 09:56
drinkin
and just waitin intently!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 13th Nov 2005 11:13
Quote: "3: Can I add shaders to it, since it is now an object?"


Yes all objects can have shaders put on them

Dbpro, Dbc and C++ coder
Desert conflict fps wip board
http://forum.thegamecreators.com/?m=forum_view&t=63878&b=8
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Nov 2005 22:11
Quote: "on the last page of the post jwurmz added normalize texture, did you ever finish the list of commands and should I add these two?"


set matrix normal and the auto normalize matrix functions were already part of the code, jwurmz was merely stating that because somebody couldn't see it in my code.

Quote: " Is there some way that I can manipulate the matrix so that it waves like an ocean?"

yes, but it would be slow. You'd have to update the verts in the memblock, then use "change mesh from memblock". This is actually slower than updating a matrix. With the new DBP vertex commands, it could be faster now as direct manipulation is allowed, but I have not tested this.


Quote: "3: Can I add shaders to it, since it is now an object?"

yes


Deadly Night Assassins
Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 15th Nov 2005 23:43
argh! Image locked by system..

anyway, this holiday demo sounds cool.. any links?


Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Nov 2005 04:15 Edited at: 16th Nov 2005 04:17
try searching?

http://forum.thegamecreators.com/?m=forum_view&t=33155&b=5

he hosted the file on dbspot, so you'd have to email Van probably.


Deadly Night Assassins
ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 16th Nov 2005 04:19 Edited at: 16th Nov 2005 09:10
YES!!!! Thanks Phaelax!
All the info definately appreciated!



Thanks Spooky!
It worked adding , 1 to the image commands!!!

Login to post a reply

Server time is: 2026-06-11 14:45:00
Your offset time is: 2026-06-11 14:45:00