Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deled DirectX file's not rendering?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition
View previous topic :: View next topic  
Author Message
Knight Chat X
Member


Joined: 17 Apr 2005
Posts: 3
Location: Tulsa, Oklahoma

PostPosted: Mon Apr 18, 2005 12:11 am    Post subject: Deled DirectX file's not rendering? Reply with quote

For some reason I can't load the .x files made by Deled into my
DirectX 9.0c application, I tried Deled several months ago and everything worked fine before last year, I recently installed latest version now it isn't working.

Also, when I look at a standard X file for a cube, I can load in DirectX
it looks totally different than when I export using Deled, has the format
changed or something?

Note:
There are no error's produced during load, the object just doesn't seem to render.

FILE 1:
Here's a copy of the X file that loads successfully that I had created before:
http://knight-technologies.us/normal_box.txt

Here's a copy of the X file that doesn't render:
http://knight-technologies.us/deled_box.txt
[/url]
Back to top
View user's profile Send private message Visit poster's website
Knight Chat X
Member


Joined: 17 Apr 2005
Posts: 3
Location: Tulsa, Oklahoma

PostPosted: Sat Apr 23, 2005 1:05 pm    Post subject: Reply with quote

Ok, I think it's due to a scaling problem and possibly a snap to grid glitch which causes object to totally dissappear in the editor.

In my application, I set far plane to 1000, set camera target to XYZ = 0, then camera at Z = 250, Y = 300.

Sounds like that stanley guy was having problems similiar to mine.

Anyways, I played with the editor some more and come accrossed a possible solution:

Step 1: Create a new project and make a cube with the default properties, make sure the cube size is 4 grid squares in size, it'll automatically snap into place.

Step 2: Turn off snap-to-grid by pressing the F9 key.

Step 3: Select the object in the Scene tab, then in the Create/Edit tab, click Scale, and set the scale to 2 for Width/Height/Depth, this seems about the equiv to the default DirectX box size which is 1.

Step 4: Click Move and position the cube to where it's centered on the grid.

Step 5: Save cube to .x file (all options checkmarked).

Walla!

Cube will be standard of -1 to 1 in size.

-OR -

-1.0F,-0.5F, 0.0F,0.5F,1.0F, 24 Vertices, 12 Faces, and 32 Bytes Per Vertex.
Back to top
View user's profile Send private message Visit poster's website
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Sun Apr 24, 2005 7:49 pm    Post subject: Reply with quote

*lol* That, or just scale the directx mesh after loading, or adjust your view matrix. Very Happy

(Or use the 'scale' property the .x exporter does not have atm Wink)
Back to top
View user's profile Send private message Visit poster's website
Knight Chat X
Member


Joined: 17 Apr 2005
Posts: 3
Location: Tulsa, Oklahoma

PostPosted: Tue Apr 26, 2005 11:49 pm    Post subject: Reply with quote

What settings do you recommend for the view matrix and the scale that would make the objects show up correctly?
Back to top
View user's profile Send private message Visit poster's website
manleystanley
Member


Joined: 12 Apr 2005
Posts: 53

PostPosted: Wed Apr 27, 2005 12:04 am    Post subject: Reply with quote

I've found; for some odd reason, that if I run the .x through Deep explorer before I put it in DeleD that I don't have a problem with the DeleD file once saved.
_________________
What forest? All I see are trees.
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Wed Apr 27, 2005 6:36 am    Post subject: Reply with quote

Knight Chat X... that depends on the object size you work with. If you make an object that is 256 units wide (i.e. pretty standard size in DeleD), and your put your application camera at z = 250, y = 300 looking at the center, it will be pretty big on your screen. So big in fact the front faces might be closer than your near plane and get clipped. Leaving you with backfaces, that don't show up. Just fiddle around with it until you get the right camera settings, that's what I always do Smile

There might be a snap to grid glitch if you make objects really really (really really) small in DeleD, if you can reproduce that we'll gladly fix it. That sad, you shouldn't try modelling tiny (sub-unit) objects in DeleD anyway, as it saves things in unit precision atm.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum