Mirage Source

Free ORPG making software.
It is currently Sun Jun 16, 2024 4:08 pm

All times are UTC




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: DirectX 8
PostPosted: Wed Sep 19, 2007 1:48 am 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Alright, so for the past few days I've been working on getting DirectX 8 into my game to replace DirectX 7, and I've come upon a few issues, and with the great help of Spodi, fixed those, but now we are truly stumped.

Basically, this is what is happening :

Image

Has anyone ever encountered this before? The vertexes and all are being created perfectly fine, the render states are good, so me and Spodi are thinking it has something to do with loading the textures (Each texture is a 32x32 tile). It seems to be getting stretched. Anyone have some insight?

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Wed Sep 19, 2007 2:11 am 
Offline
Newbie

Joined: Sat May 12, 2007 12:43 am
Posts: 12
From my experience (which isn't much in converting), if you have any instance of DX7's DirectDraw, DirectX8's Direct3D doesn't function right. At least if D3D and Draw are set to the same object.

This may not help at all, but it's what I've experienced.

I have a few successful conversions of Mirage to D3D if you want to compare them (this weekend at the earliest).

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Wed Sep 19, 2007 2:14 am 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
smchronos wrote:
From my experience (which isn't much in converting), if you have any instance of DX7's DirectDraw, DirectX8's Direct3D doesn't function right. At least if D3D and Draw are set to the same object.

This may not help at all, but it's what I've experienced.


Hmm, well I removed all the Dim`s for the objects that DX7 used and the Reference also, but I left some of the DD_ItemSurf calls for example, because I haven`t gotten to that part of DX8 yet, I`m only doing Tiles so far, but could it be because of that?

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Wed Sep 19, 2007 2:18 am 
Offline
Newbie

Joined: Sat May 12, 2007 12:43 am
Posts: 12
It may be (I'm not that knowledgable). Try the quick "comment-everything-out" to see if that is the problem (comment all references to DX7).

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Wed Sep 19, 2007 2:32 am 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Tried doing that, with all the surfaces and everything, and still nothing :(

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Wed Sep 19, 2007 2:48 am 
Robin might know.


Top
  
 
 Post subject: Re: DirectX 8
PostPosted: Wed Sep 19, 2007 8:13 am 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Try using 128x128 textures instead.

I can't see the picture (at school), but the textures stretched horribly when I used something smaller than that.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Thu Sep 20, 2007 12:18 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Robin wrote:
Try using 128x128 textures instead.

I can't see the picture (at school), but the textures stretched horribly when I used something smaller than that.


Ah, tried that, and still the same effect. I think I'm just going to drop the conversion for now xD Attept it again later.

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Thu Sep 20, 2007 1:25 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
It could be a problem with resizing when rendering, but I don't really know much about DX8.

The only time they messed up for me was when I had them too small.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Sun Oct 07, 2007 10:30 pm 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
Sorry to bump, but did you ever figure it out? I'm curious as to what the problem was.

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Sun Oct 07, 2007 10:49 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
I don't think he comes here anymore.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 3:12 am 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
I do :P I just only got notification on reply now. And nope, I never figured this one out, so I just decided to do byte arrays for now :P

But thanks for all your help Spodi :)

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 9:59 am 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
The thing is DX8 is not exactly the nicest of things to use, hence alot of games having dx7, dx9 and OpenGL options, DX8 just got missed out really xP


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 2:54 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Fox wrote:
The thing is DX8 is not exactly the nicest of things to use, hence alot of games having dx7, dx9 and OpenGL options, DX8 just got missed out really xP


Well, the thing is. DX8 is much much more powerful then DX7, and I don't personally beleive that a simple ORPG would need DX9, so DX8 seems to be the way, but that might just be my view.

_________________
Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 3:34 pm 
Can't use DX9 in VB, unless you use something like C++ to create a wrap for it or w/e.


Top
  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 3:54 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
I have vaguely looked over it and it appears some people at least have had success with dx9 in vb6, i think theres a dll floating around that very closely mimmicks dx9, its called like draw3exec or something, deserves a look into.


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 4:40 pm 
Fox wrote:
I have vaguely looked over it and it appears some people at least have had success with dx9 in vb6, i think theres a dll floating around that very closely mimmicks dx9, its called like draw3exec or something, deserves a look into.


I said it was possible with a wrapper, which is what the dll is. You should find it, maybe Robin could look into it or someone..


Top
  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 5:25 pm 
Offline
Knowledgeable
User avatar

Joined: Mon Jul 24, 2006 2:04 pm
Posts: 339
Not sure whats wrong with DirectX 8. DirectX 9 is very similar to DirectX 8, far more than 7 and 8 or 9 and 10, and it does offer more than DirectX 8, but DX8 has plenty for a 2d game, unless you want to make an incredibly graphic-overkill "2d" game that is basically a 3d game with a static camera.

_________________
NetGore Free Open Source MMORPG Maker


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 6:03 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
Perfekt wrote:
Fox wrote:
I have vaguely looked over it and it appears some people at least have had success with dx9 in vb6, i think theres a dll floating around that very closely mimmicks dx9, its called like draw3exec or something, deserves a look into.


I said it was possible with a wrapper, which is what the dll is. You should find it, maybe Robin could look into it or someone..


I wasnt disputing you nubcake,

thats right, lick a fish.

Lick it.

I'll have a look for that dll sometime i can be bothored too :]


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 7:48 pm 
Fox wrote:
I wasnt disputing you nubcake,

thats right, lick a fish.

Lick it.

I'll have a look for that dll sometime i can be bothored too :]


You have issues. I was just telling you, that's what a wrapper is. :P You fail.


Top
  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 9:59 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
lick iiiiit.


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Mon Oct 08, 2007 10:04 pm 
Fox wrote:
lick iiiiit.


Why don't you go suck off Robin or something?


Top
  
 
 Post subject: Re: DirectX 8
PostPosted: Tue Oct 09, 2007 3:38 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Hey!

Don't bring me into this!

Besides, he lives nearer to Cruel.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: DirectX 8
PostPosted: Tue Oct 09, 2007 4:12 pm 
Robin wrote:
Hey!

Don't bring me into this!

Besides, he lives nearer to Cruel.


Yeah, but you'd enjoy it. Besides, why would Fox wanna suck off a black guy?


Top
  
 
 Post subject: Re: DirectX 8
PostPosted: Tue Oct 09, 2007 5:24 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
Nuu! Robin's innocence must be preserved!

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 25 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group