Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 DrawPrimitiveUP error
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 12

masterbooda
Swordmaster

277 Posts

Posted - May 28 2004 :  8:09:24 PM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
I originally thought that too, but when you use the Len(Array(0)) you are actually pointing to the start of the array, and the total of the whole array is returned. I took another look at Jack Hoxley's tutorials again, and he doesn't multiply them either. But I could be wrong on this again... that is a pretty common occurance with me.

DaBooda out...


DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 28 2004 :  8:37:17 PM  Show Profile  Reply with Quote
Oh yeah I just looked at the tutorials and figured it out, sorry.

Actually the function gets the size of just one vertex (since it already asks for the number of primitives so it could calculate the total size)

Whatever. Who knows...

Edited by - VBBR on May 28 2004 8:38:47 PM
Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 28 2004 :  9:12:16 PM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
Now that makes sense.... and sorry I was so stubborn about it.

DaBooda out...

DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 28 2004 :  10:53:09 PM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
Sr. Guapo, if you haven't thrown the engine into the recycle bin yet, I have one question. Have you tried playing Cool Pong, and if you have did it work. If it does I can cross reference the two engines, and find whats different, but from what I can tell is the render routines are pretty much the same on both....

This is if you haven't tossed it into the recycle bin and flushed, I would blame you if you did...

DaBooda out...

DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 28 2004 :  11:57:49 PM  Show Profile  Reply with Quote
I haven't tossed it yet... I did try CoolPong, and it did work fine. There must be something that is slightly different in each of the engines. I hope one of us can find a the answer soon...
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 29 2004 :  10:25:26 AM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
I think I should clarify some of the stuff in this thread.

The Len() function returns either the size of a string, the size of a basic data type, or the data size of a structure. As the SDK shows, the fourth parameter in DrawPrimitiveUp is the stride, which is the distance from one element to another.

You may want to use a triangle list instead of a strip. It is possible that the video card doesn't support rendering strips.

Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 29 2004 :  10:41:40 AM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
I thought that too, but he ran the cool pong just fine and it used strips... And I have looked over both engines, and this area is identical in every way... but there must be a difference somewhere.... I will keep looking...

DaBooda out...

DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 29 2004 :  11:42:52 AM  Show Profile  Reply with Quote
It isn't strips, that is what I have always used for my programs. The ony thing I can think of is something in the initialisation code that is slightly different. I have tried turning off gamma, and alpha blending, but none of that helped.
Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 29 2004 :  11:51:51 AM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
The problem is the initialization is the same in both engines, really the only difference between the 2 engines, is that v1.0 uses collections, while turbo uses actual variables to store all the objects... this gave me the speed boost... because I took out all the variants

But I did notice one thing that might make the difference... and that is the tu and tv values... in v1.0 I actually subtracted .05 from the edges to keep it from bleeding , but in Turbo I used the full value... Try this, in the makestrips commands, change all the last 2 tu and tv values to 0 and 1. Maybe your card will not allow for odd values... If that makes sense...

DaBooda out...

DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 29 2004 :  12:15:29 PM  Show Profile  Reply with Quote
Wait, I'm confused. I checked the values in the tmap.tx1, etc. variables and they already are all either 0 or 1. I don't think that's the problem, anyway, but I don't really know what else it could be...
Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 29 2004 :  1:34:22 PM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
I was eating lunch, and something just clicked in my head, about the differences between the two differen't engines, and I believe its not the engines, its the difference between the two programs built on the engines.... do me on last favore and download this file:

http://dabooda.servegame.com/test3.zip

See if you get any display, and if you do use the arrow keys and escape to exit...

Thanks for all the help... and if this one doesn't work, I am completely out of ideas...

DaBooda out...

DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 29 2004 :  1:43:04 PM  Show Profile  Reply with Quote
Nope... Same error... Wow this is tough. I am not going to give up yet, though.
Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 29 2004 :  2:03:54 PM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
Argh!!! I am going to figure this out, if it leads to my demise... I will go through every line of code between the two engines, and will find out what is different... it is probably so little and petty too... but I will find it, and I will keep posting changes in here, until we nail this...

Thanks for sharing the frustration... DaBooda...

Here is a change I made, try this one...

http://dabooda.servegame.com/test4.zip

P.S. I have to watch a movie with my wife, sigh... I will be back on later tonight...


DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 29 2004 :  2:46:46 PM  Show Profile  Reply with Quote
Nothing... it has got to be somrthing hardware specific, though I can't imagine what. 2DCoder got a similar error, what were his specs? Maybe there is a similarity, not that it will help much...
Go to Top of Page

masterbooda
Swordmaster

277 Posts

Posted - May 30 2004 :  12:47:07 AM  Show Profile  Visit masterbooda's Homepage  Reply with Quote
I have compared the code, and I actually duplicated the same error code on my machine, but at a different line, so I am thinking the error has nothing to do with the line of code, or any of the code, except one thing...

This is where I need some more help from you... The way I duplicated this error, is I actually gave the InitializeDisplay command a different device ID, for my computer uses the first device, which is 0, and I know some people have an integrated device as well as a peripheal(sp?) device... when you played cool pong, what options did it give you in the first box? Because, and I am grabbing at straws here, I am thinking that your computer uses a differen't device id, and I simply didn't put that option in the demo program for you to select it...

If you could let me know, if there is more than one option, in the coolpong set up screen...

Thanks again... and this is literally the only thing that is different, between the two programs... if it isn't this... I'm at a complete loss...

DaBooda out...

DaBooda Team is back: http://dabooda.789mb.com/
Go to Top of Page
Page: of 12 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.17 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.