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.

Code Snippets / Lightmap Calculation [DBP]

Author
Message
EVOLVED
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: unknown
Posted: 1st May 2006 04:21
I meant to put "Change Mesh ob,lm,ms" , but I cant edit my posts! , theres no "change object mesh" command, my bad. So im cahngeing limbs atm.
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 1st May 2006 05:39
Oh yeah, oops. I forgot how that command was set up...

Xander Moser - Bolt Software - Firewall
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 1st May 2006 13:00
Quote: "the #include command never works for me in dbp(or have they fixed this ?)... "


Works fine for me - I'm using U6RC10.
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 3rd May 2006 09:46
Okay, I got a lightmap made for an object, but I can't get it to display correctly in my game. I looked at the lightmapper source code, and noticed that you use blend mapping to apply the texture, so I used the exact same parameters as in the lightmapping program, but all that happens in my game is that my objects gets a little darker, and the normal lights still affect it, but no shadows that appear in the lightmapper.

Xander Moser - Bolt Software - Firewall
Oolite
18
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 5th May 2006 22:45 Edited at: 5th May 2006 22:50
forgive me if this has been said but i try to add my own model to the example with the chair and i get
"runtime error 7032 - limb does not contain a mesh at line 873"

whats up?
All i did was replace the chair.X with my box.x.

And i am running 6.0 and the default IDE, for some reason BlueIDE hates it and won't run it at all...

EDIT: Just this with the lightmapping function.dba file attached, only changed the model and i can't figure out whats up...
Chris Franklin
18
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 13th May 2006 23:30
Evolved
Thanks for allowing me to use it for commercial stuff

Theme park simulator wip boards

Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 14th May 2006 20:28
Is Evolved around anymore?

Xander Moser - Bolt Software - Firewall
EVOLVED
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: unknown
Posted: 15th May 2006 18:57
Im still here , just been a bit busy ( busy doing nothing ).

Not sure what your after but have you saved the object (uv) data to a file (like in the save example ?). As you need to have a set uv data to texture, also set object light to 0. I`ll come up with some new and better examples some time soon!.

Oolite could you post the box.x object ?!
Uncle Sam
18
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 31st May 2006 07:08
EVOLVED, do you know if the progress bar DLL that comes with this is royalty free for all uses including commercial?

Uncle Sam
Nvidia Geforce 7600 GS 256MB PCIEx, 2.66 GHZ Pentium 4 proccessor, 768MB RAM
Need particles? Click here!
EVOLVED
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: unknown
Posted: 31st May 2006 19:55
I think it is? The thread where I got it from is here > http://forum.thegamecreators.com/?m=forum_view&t=64847&b=18 his site is here > http://mysite.wanadoo-members.co.uk/darksidefreeware/dllpage.htm hes done some great plugins.
Uncle Sam
18
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 31st May 2006 20:24
Thanks Evolved. By the way, your code works great, except it makes one side of my cube blue when I tried it in my game. I could probably fix that by setting the lighting though.

Uncle Sam
Nvidia Geforce 7600 GS 256MB PCIEx, 2.66 GHZ Pentium 4 proccessor, 768MB RAM
Need particles? Click here!
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 1st Jun 2006 12:06
I have two questions which are not related to this topic.
I have founded a normal mapping shader which uses spot lights somewhere on the forum(i think you wrote it). That shader has only one light so my questioin is can it be writen to use more than two lights(possibly in one pass). My other question: in that shader you have variable(called in struct part of the shader) float olr:color0. Is it possible to to write that shader without that variable.

Brendy boy
Yian
20
Years of Service
User Offline
Joined: 16th Jun 2003
Location: Nicosia, Cyprus(the Greek half)
Posted: 2nd Jun 2006 12:12
this is a great lighting set of functions, EVOLVED!
however I've been needing to create for example a sphere walking through all these lights,are you planning on some dynamic lighting? If not could you suggest some methods?
thx

A study done by William Speyer, who was a victim of prison rape in 1989, shows that 34% of [prison] rape victims released from prison become child molestors.
CTF Freak
18
Years of Service
User Offline
Joined: 27th Oct 2005
Location: In your base
Posted: 18th Jun 2006 03:55
Hey I'd like to download this but it says file not found
EVOLVED
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: unknown
Posted: 18th Jun 2006 05:02
Link on the first page should work.?

@Yian
Could use a shader , but DBp lights should work to (set the light flag back on). Ill have a look.
CTF Freak
18
Years of Service
User Offline
Joined: 27th Oct 2005
Location: In your base
Posted: 18th Jun 2006 05:48
Quote: "Error 404: File not found


The document you requested was not found.
"


It Doesn't for me
CTF Freak
18
Years of Service
User Offline
Joined: 27th Oct 2005
Location: In your base
Posted: 20th Jun 2006 16:58 Edited at: 21st Jun 2006 07:01
*edit* Sorry I was tired
EVOLVED
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: unknown
Posted: 20th Jun 2006 20:46 Edited at: 20th Jun 2006 20:49
Chris Franklin
18
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 2nd Jul 2006 12:05
@Evolved Say i wanted to lightmap an object using waypoints to follow it round how would i do that? (Using Vsync if possible)

Stunt man 2 http://forum.thegamecreators.com/?m=forum_view&t=79827&b=8&p=0
WHITEKNUCKLE IS BACK! Check the wip boards for more info
lower logic
17
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 7th Jul 2006 04:29 Edited at: 7th Jul 2006 04:50
These are really great functions, I'm going to use them in one of my games, if that's alright.

After several hours of pulling my hair out, I got my own saving/loading functionality to work. I did this so I could keep the code that loads my levels for the game i'm making, but also lets me apply the lightmap once I load all the objects that use the lightmap.

Attachments

Login to view attachments
Sixty Squares
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 19th Jul 2006 01:13
Nice one EVOLVED! Hope you don't mind me adding something in this post here : [DBPro]
==For all of you who cannot live without highlighting (when the command appears blue in the editor), attached is a file that will enable highlighting on ALL of EVOLVED's current lightmap functions. Pressing F1 on it will lead to an error, but at least it's highlighting!

Go to the Dark Basic Professional folder. Then put the attached file in the Editor\Keywords folder! So, the entire path (starting at your DBPro folder is...)
Dark Basic Professional\Editor\Keywords

Enjoy.

My Functions: Mine
Post yours: Post

Attachments

Login to view attachments
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 21st Jul 2006 00:35
I can't seem to get this to work with multi-textured objects. It always complains about an error with the limbs. What do I have to do to get it to work?(By the way,the textures are pre-applied,so I'm thinking that could be the problem)

Fear the dwemer pokeballs. Fear them!
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 21st Jul 2006 19:37
Had a quick look and this looks great. I assume it will only work with 3d objects? Not matrixes?
Agent Dink
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 26th Jul 2006 08:15
This is beautiful Evolved! Excellent work!

I'm working on a high res photorealistic texture pack. High res as in 7 megapixels, e-mail me with suggestions.

David iz cool
18
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 26th Jul 2006 19:10
i get an error everytime i run this in dbp,& cant test it.

Login to post a reply

Server time is: 2024-05-06 16:59:53
Your offset time is: 2024-05-06 16:59:53