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 / Lighting/Shadows and Milkshape Problems

Author
Message
Gil Galvanti
21
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 11th Sep 2011 05:10 Edited at: 11th Sep 2011 05:27
Hey,

I'm not sure what it is about lighting and shadows, but I've never been able to do them, and I've been using DBP for about 8 years. I've tried many shaders, DarkLights, eXtends, and built in shadows/lights, but whenever I try to use my own object that is made in 3D World Studio or Milkshape 3D, it never works. It's always black or just acts like the light isn't there. I see so many other people with games that have shadows. What is the best way to do this, and what could I be doing wrong? I've tried .x and .dbo objects.

Also, the .x files that milkshape exports won't even texture anymore in DBP for some reason. They only show up as white, untextured objects or as completely black. Yes, the textures are in the same folder as the .x. Anyone know why this wouldn't be working? Thanks.

EDIT: Figured out that apparently milkshape doesn't like .jpg textures. It will show them but when exported and loaded into DBP for some reason they won't display as the texture. Still need help with shadows/lighting if anyone has any suggestions.


chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 11th Sep 2011 11:56
Are you talking about real time lights/shadows or do you refer light mapping? .Darklights works ok. You could try aswell with mapscape or Deled both free. Coluld you post your object to check ?


Cheers.

I'm not a grumpy grandpa
cyril
18
Years of Service
User Offline
Joined: 6th Aug 2007
Location: 7 miles away from big ben
Posted: 11th Sep 2011 15:01
This might be a long shot since I don't have the 3D world studio,
But CS4 from the Dark Game studio.

Sometimes lightmappers can remove the normals of a mesh, to make sure that only the lightmap affects surface shading and surface lighting, this can cause real time lighting and shaders to fail because they rely on the information that normals give them.

Normally this can be corrected by either passing the mesh through another program. or sometimes by using the "set object normals" commands inside DBpro.

if it works you can then use the shadow commands normally, note that on importing to DBpro make sure the DBpro flag in the load object command is not 3 since that ignores vertex lighting if there is a texture at stage 1 to 9 with a blend mode as well.
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 11th Sep 2011 17:37
Gil Galvanti,

We are currently developing a DBPro plug-in for loading milkshape files.
Currently we can only load milkshape objects without animation. DBPro native lighting works on loaded milkshape objects. We are currently testing shaders on loaded milkshape objects. The material properties set in milkshape carry over into DBPro. So far we have tested .jpg, .png, .bmp, all work fine. We will post a WIP thread as soon as we have a dll ready to release.

[img][/img]


WindowsXP SP1,Vista,Windows 7 DBpro v7.61
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Gil Galvanti
21
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 11th Sep 2011 20:27
Quote: "Are you talking about real time lights/shadows or do you refer light mapping? .Darklights works ok. You could try aswell with mapscape or Deled both free. Coluld you post your object to check ?"

I'd really like real-time lighting.

I've tried the Darklights demo, and it lightmaps .dbo objects from 3DWS and .x objects from Milkshape, but it also removes their textures. Also, is Darklights useable for real-time lighting?

I've attached a file containing a .x from Milkshape and a .dbo from 3DWS.

Quote: "Sometimes lightmappers can remove the normals of a mesh, to make sure that only the lightmap affects surface shading and surface lighting, this can cause real time lighting and shaders to fail because they rely on the information that normals give them.

Normally this can be corrected by either passing the mesh through another program. or sometimes by using the "set object normals" commands inside DBpro."

Hmmm, okay, thanks, I'll look into that.

Quote: "We are currently developing a DBPro plug-in for loading milkshape files.
Currently we can only load milkshape objects without animation. DBPro native lighting works on loaded milkshape objects. We are currently testing shaders on loaded milkshape objects. The material properties set in milkshape carry over into DBPro. So far we have tested .jpg, .png, .bmp, all work fine. We will post a WIP thread as soon as we have a dll ready to release. "

Cool! Looking forward to seeing it.


Login to post a reply

Server time is: 2026-07-11 09:49:19
Your offset time is: 2026-07-11 09:49:19