UnionBytes Engine

Everything related to 3D programming
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: UnionBytes Engine

Post by Artus »

Hey,
finally I managed it to implemented the point light shadow (not optimized or cleaned up^^) but was a hard peace of work. A screenshot follows at the end of this post.

So, the Unreal Engine 4 was released during the last days and I have to think about, to stay at UBE or continuous my work with Unreal Engine 4, then I can consecrate on the game itself. I will play the next few month a bit with it, and will decide then.
Of course before I will change (If I change) I will bring the UBE to a useable version.

We will see what the future will bring^^.

Screenshot (Click to enlarge):
Image

Greetings from Germany
UnionBytes http://www.unionbytes.de/ (German)
Arthur
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: UnionBytes Engine

Post by gnasen »

That looks really nice! Are the shadows only black/invisible or are that softshadows?
pb 5.11
dman
User
User
Posts: 48
Joined: Thu Oct 01, 2009 2:10 pm

Re: UnionBytes Engine

Post by dman »

This really is some fantastic work! unfortunately I don't have a system that can run the demos,
I need coal to keep my system working! Although when the coal runs out hydro power takes over,
so not too bad.
PureBasic
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: UnionBytes Engine

Post by Artus »

Hi,

@gnasen: Yes soft shadows are possible. The shadows are not blended like in ogre, because I read often additive blending together with shadows here in the forum.
If you have a shadow in UBE only the indirect lightning (Ambient light) will be calculated for this light. The calculation for the direct light of the source will be just skipped.

@dman: Thank you :)

PS: Sorry for my late answer.

Greetings from Germany
UnionBytes http://www.unionbytes.de/ (German)
Arthur
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: UnionBytes Engine

Post by Artus »

Hey folks,

a small update for you, first we are not dead! ^^
STARGATE is busy with his master and I’m with my study, too. But I increased the performance of the engine, especially with shadows!
So here a few screenshots of my GameProject (No Demo), each Light has complex Shadows und it runes with smooth 210 FPS on my GeForce GTX 460.
Soon I will post more, maybe a Video to see the realtime shadow.

ScreenShots (Click to enlarge):
ImageImageImageImage
PS: I borrowed the 3D sword model from the UNREAL ENGINE 4 DEMO "Cave Effects", i will modeling soon my own one.

Greetings from Germany
UnionBytes http://www.unionbytes.de/ (German)
Arthur
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: UnionBytes Engine

Post by Samuel »

Nice pictures as always. Are those light shafts from the window dynamic or static?
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: UnionBytes Engine

Post by Artus »

Thanks Samuel,
unfortunately the light shafts are static, i planned to write an Post Processing shader, but i had no time. Next what i need is hardware skinning for animations.
But a PP-Shader is not so hard to write on a deferred renderer system.

Greetings from Germany
UnionBytes http://www.unionbytes.de/ (German)
Arthur
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: UnionBytes Engine

Post by Fred »

That's quite impressive, good work !
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: UnionBytes Engine

Post by Artus »

@Fred: Thank you very much :) I’m happy that you post in this topic. It’s a big honor for me.
When I started to program this Engine, I never thought it will be "so powerful" like this.
And, I’m really happy that STARGATE decided to join this project, otherwise it would be still a 2D engine
and I never decided to change to 3D.

OffTopic:
PureBasic is a great tool, it helps me a lot. And I love this language. ^^
Please keep working on PureBasic (and don't use all Energy for SpiderBasic) ;)

Greetings from Germany
UnionBytes http://www.unionbytes.de/ (German)
Arthur
juankprada
User
User
Posts: 62
Joined: Tue Mar 18, 2014 4:25 pm
Location: Bogotá, Colombia

Re: UnionBytes Engine

Post by juankprada »

@Artus: How did you managed to get OpenGL calls directly i.e without using any of the PB modules (OGRE or Sprites).
I am looking for a way to directly call OpenGL commands and be able to use shaders in my code.

Can you share how you managed to do that? That would be awesome.

Thanks
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: UnionBytes Engine

Post by IdeasVacuum »

Hi juankprada, did you see these links?
http://www.purebasic.fr/english/viewtop ... 13&t=59127
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
juankprada
User
User
Posts: 62
Joined: Tue Mar 18, 2014 4:25 pm
Location: Bogotá, Colombia

Re: UnionBytes Engine

Post by juankprada »

Of course I did, but I am really having trouble understanding them.
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: UnionBytes Engine

Post by Artus »

Hi juankprada,

First I wrote a few converters to translate the newest OpenGL C++ Header-Files to PureBasic.
This Header-Files you need to access to the OpenGL commands from OpenGL32.dll and it contains the constants.
I wrote 3 converters: The OpenGL Functions and Constants, plus the Windows OpenGL Functions (wgl).
The constants I had to adjust a bit by hand, because a few are deleted between OpenGL 3 and 4 and they are not included on this C++ Header-Files anymore.

I guess I downloaded the Header-Files from here, but I am not sure anymore:
http://www.opengl.org/registry/#headers
(You need the core profile)


After this you can include the files in PureBasic and write OpenGL Programms\Games ;)

Greetings from Germany
UnionBytes http://www.unionbytes.de/ (German)
Arthur
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: UnionBytes Engine

Post by IdeasVacuum »

Well, OpenGL is a bit of a beast - you are going to have to knuckle-down and try to understand the examples. Using OpenGL directly is actually greatly simplified by the framework and the wrapper, the UnionBytes engine most likely uses a similar approach - if you want to use their approach, use their engine. Luis posted an example using his framework, see if you can get that to work on your PC. Once it is working, try tweaking it.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
AndyLy
Enthusiast
Enthusiast
Posts: 228
Joined: Tue Jan 04, 2011 11:50 am
Location: GRI

Re: UnionBytes Engine

Post by AndyLy »

Nice pictures, of course.
Can I make the sun's rays on Ogre PB, as in the picture?
'Happiness for everybody, free, and no one will go away unsatisfied!'
SMsF town: http://www.youtube.com/watch?v=g6RRKYf_Pd0
SMf locations module (Ogre). Game video: http://www.youtube.com/watch?v=ZlhBgPJhAxI
Post Reply