|
DeleD Community Edition Forums
|
View previous topic :: View next topic |
Author |
Message |
Knight Chat X Member
Joined: 17 Apr 2005 Posts: 3 Location: Tulsa, Oklahoma
|
Posted: Mon Apr 18, 2005 12:11 am Post subject: Deled DirectX file's not rendering? |
|
|
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 |
|
|
Knight Chat X Member
Joined: 17 Apr 2005 Posts: 3 Location: Tulsa, Oklahoma
|
Posted: Sat Apr 23, 2005 1:05 pm Post subject: |
|
|
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 |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sun Apr 24, 2005 7:49 pm Post subject: |
|
|
*lol* That, or just scale the directx mesh after loading, or adjust your view matrix.
(Or use the 'scale' property the .x exporter does not have atm ) |
|
Back to top |
|
|
Knight Chat X Member
Joined: 17 Apr 2005 Posts: 3 Location: Tulsa, Oklahoma
|
Posted: Tue Apr 26, 2005 11:49 pm Post subject: |
|
|
What settings do you recommend for the view matrix and the scale that would make the objects show up correctly? |
|
Back to top |
|
|
manleystanley Member
Joined: 12 Apr 2005 Posts: 53
|
Posted: Wed Apr 27, 2005 12:04 am Post subject: |
|
|
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 |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Apr 27, 2005 6:36 am Post subject: |
|
|
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
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 |
|
|
|
|
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
|
|