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.

Newcomers DBPro Corner / Ermalos.x wont load

Author
Message
th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 14th May 2006 00:32
i made a object in 3DC and it can load but it doent show heres the snippet


A girl does to her mothers funeral and meets a guy and they fall in love. they lose contact with eachother. The next day she kills her sister...why-a phyco test
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 14th May 2006 00:52 Edited at: 14th May 2006 00:53
You don't update the screen after loading the model. Try this:


All the sync settings isn't really neccesary for just viewing a model... But I don't know... I just like having it there. Hehe.

-The Nerd

3D Arcade-like game:
SpaceBattle-Shootout
th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 14th May 2006 01:00 Edited at: 14th May 2006 01:02
now it just closes the program the second it opens




also anyone know where i can get some tutorials for cartography shopv4

A girl does to her mothers funeral and meets a guy and they fall in love. they lose contact with eachother. The next day she kills her sister...why-a phyco test
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 14th May 2006 02:15 Edited at: 14th May 2006 02:17
Putting scale object and position object in the loop is not neccesary(Not in that code anyway). I don't know why it closes though. Is there any crashon files in the same folder as the exe?

-The Nerd

3D Arcade-like game:
SpaceBattle-Shootout
th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 14th May 2006 02:52
nope it still doesnt work heres the x file see what happends with this code


A girl does to her mothers funeral and meets a guy and they fall in love. they lose contact with eachother. The next day she kills her sister...why-a phyco test

Attachments

Login to view attachments
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 14th May 2006 03:04 Edited at: 14th May 2006 03:05
Just downloaded the model and compiled it with this code:


It loaded as it should and no crash.
To be honest, I have no idea why it won't work for you. Do you place the object in the same folder as the exe file?

-The Nerd

3D Arcade-like game:
SpaceBattle-Shootout
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th May 2006 05:20 Edited at: 14th May 2006 05:23
The reason it's crashing for you is that you are adding the Scale Object command to The Nerd's code.

Do you know what it's actually doing?

Scale Object 1, 2.7, 0.8, 0.5

Will take object 1 and make it 2.7% of it's original width, 0.8% of it's original height and 0.5% of it's original depth. In other words very, very small (unless the original size was absolutely enormous)!

Your crash is due to you putting that line inside the loop which means that it will keep reducing the object's size by that amount thousands of times a second until the size is so small that DB can't handle it... and dies!

Have a read of the Scale Object section in the help files. Remember the values are percentages where using the value 100 means no change.

If you mean to make an object bigger then the values must be greater than 100. To make an object smaller use values less than 100:

Scale Object 1,50,50,50

will make an object half the size on all three axis.

[Edit] Oops - for mention that if you move the object, don't forget to point the camera towards it or you won't see the object in the new position. Unless you change it, the camera points to 0,0,0 in space.

TDK_Man

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 14th May 2006 05:25 Edited at: 14th May 2006 05:44
Quote: "Your crash is due to you putting that line inside the loop which means that it will keep reducing the object's size by that amount thousands of times a second until the size is so small that DB can't handle it... and dies!"


Hmmm... Sounds logical... Although if I take his source and compile it(with scale object inside the loop) it doesn't crash here

I did try to test against this, but as nothing happened, it did not point it out as a problem, although I did state that it wansn't neccesary to put in the loop.

I compiled it using DarkBasic Pro U6.

[edit]
Just tried compiling the source in DBC, still no crash.
[/edit]

-The Nerd

3D Arcade-like game:
SpaceBattle-Shootout
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 14th May 2006 06:18
Fair enough. Different versions of DB could maybe account for that - but it does sound strange.

They are certainly odd scale values though...

TDK_Man

th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 14th May 2006 19:31 Edited at: 14th May 2006 19:32
it still crashes without scale object using the nerds code it just closes its all in the same folder

A girl does to her mothers funeral and meets a guy and they fall in love. they lose contact with eachother. The next day she kills her sister...why-a phyco test
th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 21st May 2006 06:23 Edited at: 21st May 2006 06:35
ok now it works but the object is all the way on the right how do i get it in the center and whats up with the blue background
heres the new x file

if time is an illusion than you can give me five more minutes......
- th3 d@rk j0k3r

Attachments

Login to view attachments
th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 21st May 2006 06:33 Edited at: 21st May 2006 06:33
heres a sceenie

if time is an illusion than you can give me five more minutes......
- th3 d@rk j0k3r

Attachments

Login to view attachments
th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 21st May 2006 06:36
oh and heres the texture and the source

please help

if time is an illusion than you can give me five more minutes......
- th3 d@rk j0k3r

Attachments

Login to view attachments
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 21st May 2006 15:25
3D stuff automatically gives you a blue background. Use COLOR BACKDROP to change its colour.

Reason object is off to right is because you have exported it from 3d package with centre of rotation in wrong place. If possible re-export it with centre in correct placvem otherwise use OFFSET LIMB command to move centre of rotation (use 0 for limb number).

Also, in your .x file the texture name is STONETAN.BMP. If you had a bitmap called that in same folder, DBPro will auto texture the object for you.

Boo!
th3 dark j0k3r
18
Years of Service
User Offline
Joined: 9th Apr 2006
Location: In my own little wurld
Posted: 21st May 2006 16:44
so what aprrox should i use for the coornates i used 300,150,5
but that didnt work 300,150 is what i use to center text but i dont know for z also i cant see it when i do this it just blue

if time is an illusion than you can give me five more minutes......
- th3 d@rk j0k3r

Login to post a reply

Server time is: 2024-09-24 23:21:50
Your offset time is: 2024-09-24 23:21:50