Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FreeBasic forum and examples/previews quicklist
Quote:Here's a new 3D demo!!! :D

Can't recompile on this end...

walkaround.bas(318) : error 10: Expected '=', found: 'Cam.X'

Any idea what I'm missing?
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Reply
GluLookAt is not declared at glu.bi on version 0.10, rel sent me the full header translated 2 days ago, it will be included on the next release.

Cool demo ;), but it ran really slow on my nvidia mx440 crappy card, so i recompiled it using a 16-bit video mode (instead of the 24-bit one), and it ran 5x faster.. looks like nvidia cards hate 24-bit modes -- 32-bit is okay too.
Reply
Quote:but it ran really slow on my nvidia mx440 crappy card, so i recompiled it using a 16-bit video mode (instead of the 24-bit one), and it ran 5x faster.. looks like nvidia cards hate 24-bit modes -- 32-bit is okay too.

This I don't think is a nvidia problem. Most Game programming sites I've been on all seem to agree that much like the processor handling 32bit integers faster than other sizes, video cards handle certain byte sizes (16/32bit) better than others (24bit).

* Actually, I think "kiss-of-death" was the term used for programs running in 24bit video resolution. *
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Reply
Quote:I can see you're using the camera ftansform used by Ben Humphrey and Alan Bayliss. :*)

I'm using them as well. :*)

For a 3rd person perspective ala metal gear solid, try to swap the Camera lookat and the camera itself.

That collision is what most 3d coders use(spherical) but you can optimize it a lil bit by not using SQR and testing it by 25 instead of 5.

Yeah, that camera style's really smooth. I hate distance formula collision detection though. I want to use sphere@plane collision, instead of sphere@sphere, but I'm having problems with the normals.

Quote:Try to do a display list. It would make it real fast. :*)

I'm going to make a litttle platform game, and I'm going to try to use gl vertex arrays to store all the model data. I read somewhere that it will automatically recall vertices that were already computed. .. and no looping through all the faces! Tongue

Quote:Now that the GLu header is finished, try to add some quadrics for NPCS. Smile

Yeah, I will!

Quote:Can the OBJ file have normals in them?

No, the obj files don't store normals for some reason. You have to calculate them manually.


Arghhh!!! I didn't realize that I was using 24 bpp still. I just did it for testing purposes and I guess I never changed it back.
:oops:
Reply
Frustum Culling would speed it up even more. It's not really going to be hard since Digiben's camera system could use it w/o modification.

BTW, what do you mean by GL vertex arrays? Are they the same as display lists? A URL would be nice. :*)

BTW, I'm working on a complete redo of the GL headers, you don't need to change anything in your code except the vector params.

instead of:

Code:
glvertexfv array(0)
you'd have to pass it's address:

Code:
glvertexfv @array(0)
or

Code:
glvertexfv varptr(array(0))
It's the standard v1c wants since byref some how are a nuisance to FB when running external C code.
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
If it's going to be an FB standard, then I'm all for it. Tongue That wont stop the passing of arrays to subs by descriptor, will it? I really miss it.
:???:

Well, I may have read it wrong, but this is from OpenGL RedBook... probably an old version.

Some OpenGL implementations benefit from storing vertex data in vertex arrays. Use of vertex
arrays reduces function call overhead. Some implementations can improve performance by batch
processing or reusing processed vertices.

I was hoping that they meant arrays that will be stored by ogl itself. ...Kinda like when you use glubuild2dmipmaps.
Reply
Well, you are already using vertex arrays.

My tip would be to add frustum culling, then display lists, and use the vector calls of GL funks. Be sure to store data in sequence though or vector calls would fail.

I've finished 90% of the Gl header. All I have to do now is "Alias" them. :*)

Edit:
You're right, vertex arrays are implemented in GL 1.1.
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
http://www.freewebs.com/optimus6128/

The old examples in another server, instead of Fortunecities..
This server still, doesn't allow external links Tongue

You can find my latest 256b X86 intro and some Tunnel/Floor example (but in C, though I could very easilly port them to Freebasic) there too. I use freewebs for uploading some of my stuff when the other site (optimus.demoscene.gr) is down.

Optimus
ave a time Smile
Reply
GOTO is almost the exact same as the Assembly 'JMP' command...

there are many situations where JMP is by far the best and fastest way to go... silly not to use it just because the higher-level elite don't understand it!!! hehehehe
Reply
Once again... OMG, this is the Neverending Story Big Grin :lol:

When I get home this afternoon I'll make a webpage or something with the 2,000 pages discussion about GOTO In this forum :lol:
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)