Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
105 user(s) are online (58 user(s) are browsing Forums)

Members: 1
Guests: 104

salass00, more...

Headlines

 
  Register To Post  

AOS 4.x Warp3D problem in W3D_DrawArray
Home away from home
Home away from home


See User information
The second Warp3D bug from me (not exactly from me, but from Mr_Capehill?, who did Quake3 port to aos4) are in the W3D_DrawArray function. The problem with Vertex count values (i hope Mr.Capehill will explain it better later). The smaller workring vertex count value are 9 (only). 2, or 3, or 5 just does not works. 10 works. 11 too. 12 not. And so on. 333 works. 300 not.

I upload Here his example. Which by default have values 333 for vertex count, and it works fine. But, if you will change it on 300 for example, it just does not works (grey window). Its hardly to understand why it like this, and where is logic, so, we assume that its a bug, and any vertex value should works.

@All

Anyone can try to download that example, and try to run it from shell. By default it have 333 (works), but you can try to put as first argument to programm any other value from 1 and more, just to see that with some values it works, with others are not, and there is not logic why it like this.


Edited by kas1e on 2010/5/6 8:32:46
Edited by kas1e on 2010/5/6 9:37:33
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Just can't stay away
Just can't stay away


See User information
@kas1e

Thanks bro, but it's possible that my code has a bug. IIRC I don't divide by three the triangle count. Have to check. And sorry about the hassle :)

EDIT: or maybe the other way around, I did an unnecessary division.

Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Home away from home
Home away from home


See User information
@Capehill

On latest IOQuake we have also many problems about audio distortion, almost on Sam/Sam Flex machines ...

Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Quite a regular
Quite a regular


See User information
hello,

if launched on the SAM with text.exe or text.exe 1 or 2 or 3,...., there are lots of fail -9 on the shell.

A1200+Mediator+VooDoo3+060/50+96mo+IIYAMA 17"+CD,CDRW,ZIP SCSI-KIT
SAM440EP on Mapower 3000+AOS4.1

Amiga Docs Disk Preservation Project
Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Home away from home
Home away from home


See User information
@Capehill

Quote:

Capehill wrote:
@kas1e

Thanks bro, but it's possible that my code has a bug. IIRC I don't divide by three the triangle count. Have to check. And sorry about the hassle :)

EDIT: or maybe the other way around, I did an unnecessary division.


Could you check whether this is the case or not before someone starts trying to track down a phantom bug?

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Just can't stay away
Just can't stay away


See User information
@Hans

Yes, it's my fault. Count parameter set wrong. Sorry. Bug is here:

IWarp3D->W3D_DrawArray( context, W3D_PRIMITIVE_TRIANGLES, 0, VERTICES/3 );

Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Home away from home
Home away from home


See User information
@Capehill

Ah, okay. Any luck tracking down which rendering calls are causing quake3 lockups?

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Home away from home
Home away from home


See User information
@Capehill
So, with good parameter set all is ok for now ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Just can't stay away
Just can't stay away


See User information
@kas1e

I guess so. I didn't do very deep testing though. It also makes now sense why 333 worked (111 vertices, can be divided by 3) and 300 not (100 vertices, can't be divided by three)

Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Just can't stay away
Just can't stay away


See User information
@Hans

Not yet :(

Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Home away from home
Home away from home


See User information
@Capehill

So, the bug is still here ? I.e. 300/3 = 100 verts are not works (but must) ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AOS 4.x Warp3D drivers bug in W3D_DrawArray
Home away from home
Home away from home


See User information
@kas1e

Quote:

kas1e wrote:
@Capehill

So, the bug is still here ? I.e. 300/3 = 100 verts are not works (but must) ?


Change:

IWarp3D->W3D_DrawArray( context, W3D_PRIMITIVE_TRIANGLES, 0, VERTICES/3 );

to:

IWarp3D->W3D_DrawArray( context, W3D_PRIMITIVE_TRIANGLES, 0, VERTICES );

If you look at the autodocs, W3D_DrawArray()'s final parameter is the number of vertices, not the number of primitives being rendered. The number of vertices should be a multiple of the number required per primitive, or it won't draw a thing.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project