Guidance Needed...

Advanced game related topics
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Guidance Needed...

Post by blueb »

Guidance Needed...

I'm only starting to dabble in graphics programming because I need to simulate a 'Dice toss' with 5 dice.

Presently I've got a few GIF's that show a single dice 'sort of' moving, but now I need to dig in deeper.

------------------------------------
My choices are...
2D.. 3D.. SVG.. GDI.. GDI+

As well as: OpenGL, GLFW, Ogre 3D, DirectX, Direct2D, Direct3D

but I'm getting bogged down with all the possibilities. :mrgreen:

I know this is a subjective question, but:

What's the best tool for starting computer graphics with PureBasic in the long run?

Thanks in advance.
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Guidance Needed...

Post by luis »

I don't have a real suggestion because it depends on how much time you want to invest in it before getting results and if this is just for your learning pleasure or not.
I can tell you that If you are just starting there are many things you will have to learn just in the "geometrical" realm without even touch programming, and beyond that specific algorithms and math frequently used in this domain.
If you decide to use DirectX or OpenGL you will have to learn so much theoretical stuff to properly glue all together without even seeing a point moving on the screen. This if you want to know what you are doing, copying snippets from the web doesn't require that but it's not ideal in the long run.
I don't know if the steep learning curve is worth it considering what you can still learn by just using PB.
Like for general programming, where what you learn with your first language is still extremely useful even when you move to a second more complex one, what you can learn by just using PB sprites, 2D drawring commands and especially PB Ogre will be useful if/when you decide to move to something else.

You may invest some time in exploring different routes for let's say.. a month.. look into them just to get a feel of the complexity of each one.
And then choose the one you like more.
Because if you like it and you feel attracted to it you will make progresses faster and most importantly you will stick to it.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Guidance Needed...

Post by blueb »

luis wrote:... what you can learn by just using PB sprites, 2D drawring commands and especially PB Ogre will be useful if/when you decide to move to something else.
Thanks for the detailed response Luis.. it's appreciated.

Your remark above is especially useful. I think I will dig into Orge first, then maybe sprites to see iof I can get something going in that area.

Thanks again. :D
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Guidance Needed...

Post by JHPJHP »

Hi blueb,

See the following; it won't be much use overall, but it may help to narrow your possibilities.
- at the least it may provide a direction for a simple splash screen

Windows Services & Other Stuff
- \Other_Stuff\OpenGLStuff\DiceRoll\DiceRoll.pb

Image
Last edited by JHPJHP on Mon Mar 04, 2019 12:03 am, edited 1 time in total.
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Guidance Needed...

Post by blueb »

I had an older version of your Zip and it didn't include this file.

Rotate.pb is a nice sample that's easy to follow.

Notes:
I was looking for code that added OpenGL as a subsystem.
I never realized that OpenGLGadget() allowed you to use most OpenGL commands directly!
I guess reading the manual (RTFM) is probably a good idea!

Between all the 2D, 3D and OpenGL commands, I won't have a problem keeping busy.

Thanks JHPJHP :mrgreen:
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Post Reply