Recent

Author Topic: where is the demo3D ?  (Read 12283 times)

raffou

  • New Member
  • *
  • Posts: 11
where is the demo3D ?
« on: July 19, 2012, 11:09:16 am »
now i understand a little bit bgrabitmap and i've seen the 'scene3d' unit and a post about "wow, the demo 3D"
so i would know where it is

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: where is the demo3D ?
« Reply #1 on: July 19, 2012, 02:24:38 pm »
Download GNU tarball from here. Note the requirement of EpikTimer package.

raffou

  • New Member
  • *
  • Posts: 11
Re: where is the demo3D ?
« Reply #2 on: July 19, 2012, 04:04:48 pm »
ok, thanks but
i don't understand really svn, repository , ..
How can i download this demo easily ?
what's epik ?
yes, i know i'm really a newbie in gnu, lazarus,...

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: where is the demo3D ?
« Reply #3 on: July 19, 2012, 04:09:16 pm »
Quote
How can i download this demo easily ?
Is pressing "Download GNU Tarball" in the left bottom corner of the page difficult?
Quote
what's epik ?
http://wiki.freepascal.org/EpikTimer

raffou

  • New Member
  • *
  • Posts: 11
Re: where is the demo3D ?
« Reply #4 on: July 19, 2012, 04:19:32 pm »
i agree it's not difficult to click but the question was "where ?"
and questions like that can be very profound
Thank you

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: where is the demo3D ?
« Reply #5 on: July 19, 2012, 04:52:00 pm »
Quote
but the question was "where ?"
See my first answer, it's a link to the page.

raffou

  • New Member
  • *
  • Posts: 11
Re: where is the demo3D ?
« Reply #6 on: July 19, 2012, 05:29:09 pm »
Hey ther are a lot of programs with bgra
It will complete the tutorials and it's what i needed
Thank you very beaucoup
the night will be long !

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: where is the demo3D ?
« Reply #7 on: July 20, 2012, 11:57:59 am »
Enjoy  :D
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: where is the demo3D ?
« Reply #8 on: July 20, 2012, 12:50:20 pm »
I've added a description in each unit of the 3D demo, to explain what are the key features.

@raffou: Note that you don't have to download everything again. Just go to the bgratutorial3d folder :
http://lazpaint.svn.sourceforge.net/viewvc/lazpaint/bgratutorial3d/
Conscience is the debugger of the mind

raffou

  • New Member
  • *
  • Posts: 11
Re: where is the demo3D ?
« Reply #9 on: July 20, 2012, 06:23:07 pm »
It's not only the demo3D that i've found
There are the folders bgraggtest, testbgrafunc, and test canvas2D
A lot of routines, methods, fuctions explained by the result of the programs
It's a goldmine for me : i only knew the tutorials !
Perhaps a tutorial about  canvas2D  would be useful
i've still some difficulty with 'beginpath', 'beginstroke', etc
i don't understand when it's necessary to use ' save'  and 'restore' canvas2D

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: where is the demo3D ?
« Reply #10 on: July 21, 2012, 08:34:24 pm »
Canvas2D works that way :
- first you define a path, and so you must start be clearing the current path using BeginPath
- after BeginPath, you add shapes and points
- finally you fill it and stroke it (stroke is the contour, or the line between points)

The save and restore functions allows to save the current settings :
- line style
- color
- rotation/translation
...
Conscience is the debugger of the mind

raffou

  • New Member
  • *
  • Posts: 11
Re: where is the demo3D ?
« Reply #11 on: July 22, 2012, 11:07:38 am »
@circular : Thank you for your explanations, i'm going to experiment with that

i've  a problem of speed with cyclicperlinnoise
With Adobe Flash, i experimented the perlinnoise with a lot of paramaters and it was possible to change the parameters thirty times or more by second (animated perlin)
It seems to be impossible with lazarus because cyclicperlinnoise or interp256 are slow
Is it because flash is more optimized for graphics and use hardware acceleration ?

In Flash, there is an excellent free library 3D made by Mathieu Badimon (see his site)  very fast and efficient (more than the one of flash after version CS4)
I'm going to try to translate it in Pascal via BGRA but i wonder if it will be quick enough

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: where is the demo3D ?
« Reply #12 on: July 22, 2012, 08:39:29 pm »
The slowness you are talking about is specific to Perlin noise. I did it using image resample, which is not the fastest way. If you find a better algorithm for that, it should be just as fast.

Translating a whole 3D library is much work. What are the features of the library ? Are you talking about FIVe3D ?
Conscience is the debugger of the mind

raffou

  • New Member
  • *
  • Posts: 11
Re: where is the demo3D ?
« Reply #13 on: July 24, 2012, 07:16:01 pm »
yes i'm talking about five3D
I don't want to translate it completely, but some parts are a good exercise for retrieving my old pascal sensations :)
i don't know what algorithm adobe uses for perlinnoise but it's very quick

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: where is the demo3D ?
« Reply #14 on: July 24, 2012, 07:41:45 pm »
If you come up with something interesting in this translation, please tell me.  :)

Anyway you really need fast Perlin noise ? I you do, I sugggest you to look at some algorithms on the web. They are in C in my memories.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018