Mirage Source
http://web.miragesource.net/forums/

DirectX 8
http://web.miragesource.net/forums/viewtopic.php?f=201&t=2719
Page 1 of 2

Author:  JokeofWeek [ Wed Sep 19, 2007 1:48 am ]
Post subject:  DirectX 8

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?

Author:  smchronos [ Wed Sep 19, 2007 2:11 am ]
Post subject:  Re: DirectX 8

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).

Author:  JokeofWeek [ Wed Sep 19, 2007 2:14 am ]
Post subject:  Re: DirectX 8

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?

Author:  smchronos [ Wed Sep 19, 2007 2:18 am ]
Post subject:  Re: DirectX 8

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).

Author:  JokeofWeek [ Wed Sep 19, 2007 2:32 am ]
Post subject:  Re: DirectX 8

Tried doing that, with all the surfaces and everything, and still nothing :(

Author:  Matt [ Wed Sep 19, 2007 2:48 am ]
Post subject:  Re: DirectX 8

Robin might know.

Author:  Robin [ Wed Sep 19, 2007 8:13 am ]
Post subject:  Re: DirectX 8

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.

Author:  JokeofWeek [ Thu Sep 20, 2007 12:18 pm ]
Post subject:  Re: DirectX 8

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.

Author:  Robin [ Thu Sep 20, 2007 1:25 pm ]
Post subject:  Re: DirectX 8

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.

Author:  Spodi [ Sun Oct 07, 2007 10:30 pm ]
Post subject:  Re: DirectX 8

Sorry to bump, but did you ever figure it out? I'm curious as to what the problem was.

Author:  Robin [ Sun Oct 07, 2007 10:49 pm ]
Post subject:  Re: DirectX 8

I don't think he comes here anymore.

Author:  JokeofWeek [ Mon Oct 08, 2007 3:12 am ]
Post subject:  Re: DirectX 8

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 :)

Author:  Coke [ Mon Oct 08, 2007 9:59 am ]
Post subject:  Re: DirectX 8

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

Author:  JokeofWeek [ Mon Oct 08, 2007 2:54 pm ]
Post subject:  Re: DirectX 8

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.

Author:  Matt [ Mon Oct 08, 2007 3:34 pm ]
Post subject:  Re: DirectX 8

Can't use DX9 in VB, unless you use something like C++ to create a wrap for it or w/e.

Author:  Coke [ Mon Oct 08, 2007 3:54 pm ]
Post subject:  Re: DirectX 8

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.

Author:  Matt [ Mon Oct 08, 2007 4:40 pm ]
Post subject:  Re: DirectX 8

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..

Author:  Spodi [ Mon Oct 08, 2007 5:25 pm ]
Post subject:  Re: DirectX 8

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.

Author:  Coke [ Mon Oct 08, 2007 6:03 pm ]
Post subject:  Re: DirectX 8

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 :]

Author:  Matt [ Mon Oct 08, 2007 7:48 pm ]
Post subject:  Re: DirectX 8

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.

Author:  Coke [ Mon Oct 08, 2007 9:59 pm ]
Post subject:  Re: DirectX 8

lick iiiiit.

Author:  Matt [ Mon Oct 08, 2007 10:04 pm ]
Post subject:  Re: DirectX 8

Fox wrote:
lick iiiiit.


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

Author:  Robin [ Tue Oct 09, 2007 3:38 pm ]
Post subject:  Re: DirectX 8

Hey!

Don't bring me into this!

Besides, he lives nearer to Cruel.

Author:  Matt [ Tue Oct 09, 2007 4:12 pm ]
Post subject:  Re: DirectX 8

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?

Author:  Lea [ Tue Oct 09, 2007 5:24 pm ]
Post subject:  Re: DirectX 8

Nuu! Robin's innocence must be preserved!

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/