Recent

Author Topic: What graphics engine could achieve this ?  (Read 17999 times)

Zath

  • Sr. Member
  • ****
  • Posts: 391
What graphics engine could achieve this ?
« on: June 28, 2017, 06:16:38 pm »
Hello.
I have played a game for years and there's a core of fools that still do !
It was originally written with Delphi back in the day.
It uses DirectX and thousands of bmp tiles to create the effect.
I wanted to try and create the same with Lazarus but with one of the newer OpenGL type engines.

This is my own vid. Basically it shows a player composed of multiple bmps being looped like a flick book.
Everything you see is a bmp image/images.

Any views ?
https://youtu.be/pUSaWeNJ334

Handoko

  • Hero Member
  • *****
  • Posts: 5132
  • My goal: build my own game engine using Lazarus
Re: What graphics engine could achieve this ?
« Reply #1 on: June 28, 2017, 06:39:47 pm »
Here is a list of graphics/game engines and libraries:
http://wiki.freepascal.org/Game_Engine

Castle Game Engine is actively developed and the author is nice and very helpful. GLScene is very powerful too, unfortunately it has texturing bug when running on Linux. SDL is much simple to start with, I saw a newbie - he managed to create a very simple 2D game just in weeks learning it. SDL is capable for 3D too. I ever learned Allegro, although I do not use it, but I should mention it is easy to learn and has 3D feature too. ZenGL is promising, unfortunately the development has stopped since some years ago.

All the mentioned names above should able to achieve the similar effects.

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: What graphics engine could achieve this ?
« Reply #2 on: June 28, 2017, 06:46:02 pm »
Thanks as always Handoko  :)
I was looking at the allegro.pas earlier. Seems very interesting.
Would it be a case of using multiple tiles like in the video or would the base/main picture be one large image ?

Handoko

  • Hero Member
  • *****
  • Posts: 5132
  • My goal: build my own game engine using Lazarus
Re: What graphics engine could achieve this ?
« Reply #3 on: June 28, 2017, 07:07:16 pm »
Not really understood what you said.

Basically it shows a player composed of multiple bmps being looped like a flick book.

You're right, is not a real 3D. it just a 2D composed by multiple pre-rendered 3D images. Allegro is capable to do that, if you know how. For example, I ever tried to make walking character using Allegro.pas:
http://forum.lazarus.freepascal.org/index.php/topic,35313.msg236058.html#msg236058

Would it be a case of using multiple tiles like in the video or would the base/main picture be one large image ?

Did you mean using tiles to build a game world? Usually you need to use level/tile editor like DeleD or Tiled Map Editor.

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: What graphics engine could achieve this ?
« Reply #4 on: June 28, 2017, 10:10:14 pm »
Not really understood what you said.

Basically it shows a player composed of multiple bmps being looped like a flick book.

You're right, is not a real 3D. it just a 2D composed by multiple pre-rendered 3D images. Allegro is capable to do that, if you know how. For example, I ever tried to make walking character using Allegro.pas:
http://forum.lazarus.freepascal.org/index.php/topic,35313.msg236058.html#msg236058

Would it be a case of using multiple tiles like in the video or would the base/main picture be one large image ?

Did you mean using tiles to build a game world? Usually you need to use level/tile editor like DeleD or Tiled Map Editor.

This is exactly what I am looking for. Brilliant piece of animation.
https://postimg.org/image/80qim95ml/

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: What graphics engine could achieve this ?
« Reply #5 on: June 29, 2017, 04:51:18 am »
There is a small demo like that for nxPascal, here you see the character in 3 frame texture
https://github.com/Zaflis/nxpascal/blob/master/demos/fpc/walker/textures/walker.png

Rest of the source code is right there when browsing the folders.

You will always want to have as few pictures as possible for faster drawing speed. Here is another example of sprite sheet:
https://s3-us-west-2.amazonaws.com/s.cdpn.io/59506/spritesheet_grant.png

Actually i would say any and all graphics engines are capable of doing it.

Eugene Loza

  • Hero Member
  • *****
  • Posts: 663
    • My games in Pascal
Re: What graphics engine could achieve this ?
« Reply #6 on: June 29, 2017, 07:21:33 am »
Yes, you can create such stuff in Castle Game Engine (see example: https://github.com/castle-engine/castle-engine/tree/master/examples/isometric_game)
However, you might find FLARE more suitable to your needs. Thou it's not Pascal.
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Handoko

  • Hero Member
  • *****
  • Posts: 5132
  • My goal: build my own game engine using Lazarus
Re: What graphics engine could achieve this ?
« Reply #7 on: June 29, 2017, 10:32:14 am »
Most game/graphics engines today are capable to show animated character. Some have it as a ready-to-use feature. While the others, you have to manually program the animation.

I created the walking animation using Allegro.pas. Still not finished. I will submit that simple demo how to create a game using Allegro.pas to Graphics Contest 2017. There I will include a detailed step-by-step tutorial. I still have 1 month or more right? I am busy at the moment, but I am sure I can finish it before the deadline.

Flare is an interesting project. They have professional artists and programmers, and it is open source. But it seems the development has been slowed down or maybe stopped. nxPascal is good too, it caught my attention some years ago unfortunately I could not find tutorial about it.
« Last Edit: June 29, 2017, 11:14:27 am by Handoko »

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: What graphics engine could achieve this ?
« Reply #8 on: June 29, 2017, 11:23:12 am »
Where did you get the graphics for the walking knight Handoko ?
Did you create them from scratch yourself or are they from a resource ?

Handoko

  • Hero Member
  • *****
  • Posts: 5132
  • My goal: build my own game engine using Lazarus
Re: What graphics engine could achieve this ?
« Reply #9 on: June 29, 2017, 11:25:44 am »
Here:
http://www.reinerstilesets.de/2d-grafiken/2d-humans/

I checked the license, they are free as long as we do not use it to compete the the author.

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: What graphics engine could achieve this ?
« Reply #10 on: June 29, 2017, 11:33:13 am »
Here:
http://www.reinerstilesets.de/2d-grafiken/2d-humans/

I checked the license, they are free as long as we do not use it to compete the the author.

Thank you very much indeed.

Paul_

  • Full Member
  • ***
  • Posts: 143
Re: What graphics engine could achieve this ?
« Reply #11 on: June 29, 2017, 07:49:19 pm »
What I remember, this guy was making similar isometric game in ZenGL: https://www.youtube.com/channel/UCdVJHaO60aoxd-PNizuFE-A

Handoko

  • Hero Member
  • *****
  • Posts: 5132
  • My goal: build my own game engine using Lazarus
Re: What graphics engine could achieve this ?
« Reply #12 on: June 29, 2017, 08:27:15 pm »
ZenGL was one of the thing in my have to learn list. But some years ago I learned from their forum, the development of ZenGL will be stopped. The author said, he is a perfectionist, Pascal was slow he had to play around with C-code for speed, which is boring, FPC and Lazarus was not as good as he want, Delphi was expensive, Pascal community was almost dead.

Sad :'(

Paul_

  • Full Member
  • ***
  • Posts: 143
Re: What graphics engine could achieve this ?
« Reply #13 on: June 29, 2017, 09:10:28 pm »
Also keeping multiplatform code was big problem. Anyway, ZenGL code and structure is great source for learning.
Without OOP, clear structure. Only gameloop itself is confusing and there are some "hacks".

turrican

  • Full Member
  • ***
  • Posts: 133
  • Pascal is my life.
    • Homepage
Re: What graphics engine could achieve this ?
« Reply #14 on: June 30, 2017, 10:38:39 am »
Also keeping multiplatform code was big problem. Anyway, ZenGL code and structure is great source for learning.
Without OOP, clear structure. Only gameloop itself is confusing and there are some "hacks".

ZenGL is the best framework to do 2D and MultiArch-MultiOS. The project needs a maintenaince but at this time works ok.

I have a framework to simplify and abstract ZenGL called SimpleZenGL . Features are OOP, Scenes, SpriteBatches, Collisions, Events, Input and Sound.

 

TinyPortal © 2005-2018