Jump to content


Photo

3D Questions


  • Please log in to reply
4 replies to this topic

#1 wosci

wosci

    GMC Member

  • GMC Member
  • 201 posts

Posted 29 April 2012 - 07:37 PM

1. This is a more theoretical question: I was wondering, why something as simple as drawing for example 640 x 480 draw_set_points(..) is slowing down the FPS down far more then usual 3D graphics?
Because 3D games in a 640 x 480 port have the same amount of pixels, but have way lesser qualitative possibilities than a screen in which each indiviual pixel has its own properties.

2. Is there a succesful (open source!) 3d Distance blur tutorial, game or other file somewhere at GMC?
  • 0

#2 Gamer3D

Gamer3D

    Human* me = this;

  • GMC Member
  • 1618 posts
  • Version:GM:Studio

Posted 29 April 2012 - 09:25 PM

1. This is a more theoretical question: I was wondering, why something as simple as drawing for example 640 x 480 draw_set_points(..) is slowing down the FPS down far more then usual 3D graphics?
Because 3D games in a 640 x 480 port have the same amount of pixels, but have way lesser qualitative possibilities than a screen in which each indiviual pixel has its own properties.

GM functions are slow, and you're calling draw_set_point 307200 times. Do the math.

2. Is there a succesful (open source!) 3d Distance blur tutorial, game or other file somewhere at GMC?

Probably not, but it shouldn't be too hard to pull off if you're willing to take a significant performance hit. I'll see if I can make a quick example.

EDIT: Quick example. In this case, a blurred image is alpha-blended onto the original. More complex methods could have better results, but this should be fine for your purposes.

Edited by Gamer3D, 30 April 2012 - 03:12 AM.

  • 0

#3 Tepi

Tepi

    GMC Member

  • Global Moderators
  • 4203 posts
  • Version:GM8.1

Posted 30 April 2012 - 10:20 AM

1. This is a more theoretical question: I was wondering, why something as simple as drawing for example 640 x 480 draw_set_points(..) is slowing down the FPS down far more then usual 3D graphics?

GM needs to call the function, which consumes much time, as suggested by Gamer3D. Additionally using d3d, the GPU is used to rasterize, rather than the CPU, which is a lot faster (the difference is discussed in this paper).

What function is draw_set_points anyway? ;)

2. Is there a succesful (open source!) 3d Distance blur tutorial, game or other file somewhere at GMC?

Take a look at this post and some of the following ones. It's done using the Surface Fix extension, but it's no longer necessary with the gm8.1 version.
  • 0

#4 wosci

wosci

    GMC Member

  • GMC Member
  • 201 posts

Posted 01 May 2012 - 05:00 PM

Sorry, I forgot to mention that I use GM7 Pro. Can you convert the GM8 examples please?
  • 0

#5 Gamer3D

Gamer3D

    Human* me = this;

  • GMC Member
  • 1618 posts
  • Version:GM:Studio

Posted 01 May 2012 - 09:22 PM

Sorry, I forgot to mention that I use GM7 Pro. Can you convert the GM8 examples please?

For GM7, you'll need the surface fix DLL/extension (GM8.1 incorporates the solution natively)

Also, it's exactly as easy for YOU to convert the examples as it is for US to convert the examples. Go find a converter.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users