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 Discussion / Smoothing problems...

Author
Message
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 24th Oct 2005 17:37
Hey people

Been doing a maze out of boredom really, but... can I say how painful cubes are? well, take a look at this screenshot:

There I'm using 3DSMAX-made objects: cubes (walls) and a plain (for the roof), the other plain is the floor, and I'm gonna explain later why that.

Look at the walls: I thought this was a model's problem. Ok, I get in 3DSMAX and select all the faces, then remove all the smoothing groups... doesn't fix it. Make Object Cube does the same, so I get on Milkshape and follow what's explained on the site (or basically, Vertex -> Unweld) for removing the smoothing. Okay, looks good in MilkShape, so it should look cool on DB. What happens? looks the same way.

Look at the floor and the roof: The roof is lit correctly by the light I have on the player's spot (camera position), YET the floor isn't! I thought it was a model's problem so I replaced it with Make Object Plain: Same result.

Here's my code:


If you need the models... it's just a 20x20x20 cube (according to DB, 20 seems to fit each edge perfectly) and two plains. Textures can be anything.

Other thing is, the light "system" I have there is affecting in any way the smoothing on the objects then? or what is it? could it be I'm using .3DS instead of .X? and why the light is correctly set on the roof but not on the floor? If anyone can help... thanks in advance

-DARKGuy


http://dbfree.dbspot.com/ <- DB Freebie Archive! Royalty-free media for your games! FREE!
Grossman
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Russia
Posted: 26th Oct 2005 00:18 Edited at: 26th Oct 2005 00:22
Very strange. What is your graphics card?
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Oct 2005 00:25
What if I don't need to use cubes (in case of a forest... trees are not cubes and I'm so not using textures <_< and models... what guarantees me it's gonna be light the proper way as it would in Make Object Cube as it does? (strangely it works cool now, but with Cube). If I want to use other type of models (either made in 3DSMAX or MilkShape) what would guarantee it?

Either way, let's say that's solved, what about the floor? yesterday I tried Make Object Cube and Make Object Plain both with the floor and none of them worked. Weird though, as the cubes used as wall light correctly. Look at the code Grossman, I'm using Make Object Plain there, and is not working. Same with Make Object Cube and placing it 20 units down so the top ends up being the floor... doesn't works, heh...


http://dbfree.dbspot.com/ <- DB Freebie Archive! Royalty-free media for your games! FREE!
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Oct 2005 04:20
Grossman: You edited the post <_<...

Anyways, Onboard SiS 630/730 with AGP at 32Mb now (it's originally of 16, but expandable to 64... all that video RAM is taken from the normal RAM (256Mb to the moment) )

Make Object Cube works with cube-i-zed walls, but that doesn't guarantees me it'll work with normal models and the floor doesn't lights correctly, either :/


http://dbfree.dbspot.com/ <- DB Freebie Archive! Royalty-free media for your games! FREE!
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 26th Oct 2005 14:55
Have you tried turning the floor plain the other way up? It may well help with the lighting problems.

The happenings of tommorow are behind us now
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Oct 2005 16:09 Edited at: 26th Oct 2005 16:09
Use

SET OBJECT obj,1,1,0

This will display the polygons normally hidden because you look behind it.

Immunity and Annihalation makes Immunihalation...
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Oct 2005 17:33 Edited at: 26th Oct 2005 17:39
I just tried what Robot and Sven B said... both didn't worked

EDIT: Wait, it did. YAY!!!! ... why the heck it works like that... I dunno, but it really works ! ^_^ thanks guys

Though... thats' making a 2-poly plain to be made 4-poly (for the culling) thus increasing polycount... any workaround to this? xD


http://dbfree.dbspot.com/ <- DB Freebie Archive! Royalty-free media for your games! FREE!
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 26th Oct 2005 18:21
DARKGuy,

Did you not try Robot's sugggestion alone? If his idea worked, then there will be no need for culling, thus eliminating the unnecessary polygons.



+NanoBrain+
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Oct 2005 18:51 Edited at: 26th Oct 2005 18:52
Er, I did, and (logically) doesn't shows as the plain's made of just 2 faces pointing somewhere. If I pointed them down (as Robot said.. I mean, well, just flipping it over (AKA xrotate object obj,180) ) then its backfaces won't show as there are no backfaces :/

By the way... it could be my system but... anyone knows why a MID doesn't load in XP but it does and plays correctly in 98? it says "Music could not be loaded" no matter if it's even a Load Music then Play Music, nothing. (it works with other MIDis though) :/

EDIT: Like in here: http://72.14.207.104/search?q=cache:fQ4vimFYqpQJ:www.dannywartnaby.co.uk/rgt/index.php%3Fboard%3D6%3Baction%3Ddisplay%3Bthreadid%3D36+darkbasic+classic+%22music+could+not+be+loaded%22+mid&hl=en&client=opera ... taken from Google's cache as RGT (sadly) died ... and I wanna see Page 2 to check how did he solved it...


http://dbfree.dbspot.com/ <- DB Freebie Archive! Royalty-free media for your games! FREE!
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 27th Oct 2005 06:00
Bump


http://dbfree.dbspot.com/ <- DB Freebie Archive! Royalty-free media for your games! FREE!

Login to post a reply

Server time is: 2025-05-22 14:12:58
Your offset time is: 2025-05-22 14:12:58