It is currently Mon Sep 28, 2020 8:18 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Landscape v6 >>> OK <<<
PostPosted: Fri Aug 21, 2020 12:07 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Jul 09, 2015 9:07 am
Posts: 111
Image
Hey, coders,

v6 of my "Landscape" demo.
the use of shaders improves the rendering significantly
for compatibility on all platforms, I have adapted my shaders for OpenGL (GLSL)

we can now do some perfectly good things with PB.

This time I didn't put the source, just the exe.
I would like to provide a lib with a doc to use it in your games.
I haven't been able to make this lib yet because of a problem with the arrays as procedure parameters.
(but I'm hoping Fred will figure it out.)

the Zip:

http://cg.racine.free.fr/paysage-v6.zip

Sorry just for Windows64 at the moment


the sprites are problematic with 3D OpenGL, so I removed the display of the commands:
- F1 -> F5 : terrain selection
- F11: to switch to flight/walk mode
- F12: wire
- Esc: leave
PS: we start with field 4, but you can use the buttons
(if it's rowing try lowering your screen resolution)


Last edited by pf shadoko on Sun Aug 23, 2020 12:17 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6
PostPosted: Fri Aug 21, 2020 12:55 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2011 10:06 am
Posts: 866
Location: Denmark
Hey pf shadoko

Something is wrong. All I get is the following: (F1 - F5)

https://www.dropbox.com/s/dad2hva1ri7idbc/F1.png?dl=0
https://www.dropbox.com/s/uw089ew82xpzg7e/F2.png?dl=0
https://www.dropbox.com/s/wltrqcka16u58fh/F3.png?dl=0
e.t.c...

Your image looks really good, though. ;-)

Best regards

_________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.”
— Benjamin Franklin
Current configurations: Windows 10, Intel 6800K, GeForce Gtx 1060, 32 gb ram.


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6
PostPosted: Fri Aug 21, 2020 1:37 pm 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 1006
Doesn't run for me. Just a black screen with the blue "waiting" circle for over a minute.


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6
PostPosted: Fri Aug 21, 2020 1:51 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Jul 09, 2015 9:07 am
Posts: 111
Thanks for bringing up those issues.

I had made a first HLSL (DirectX) version, but as it required the installation of DX9c, I converted my shaders to GLSL (OpenGL), and there again I have compatibility problems.
I don't know what to do anymore...


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6
PostPosted: Fri Aug 21, 2020 2:27 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2011 10:06 am
Posts: 866
Location: Denmark
I know how that feels. You're generally stuck between a rock and a hard place.
It would be nice to have the Ogre3D updated to a newer version
but I won't hold my breath.
Anyway, you are extremely skilled in 3D and it's always interesting to see
what you're creating. :-)

_________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.”
— Benjamin Franklin
Current configurations: Windows 10, Intel 6800K, GeForce Gtx 1060, 32 gb ram.


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6 >>> OK <<<
PostPosted: Sun Aug 23, 2020 12:19 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Jul 09, 2015 9:07 am
Posts: 111
I've been updating the shaders.
Tell me if it works.


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6 >>> OK <<<
PostPosted: Sun Aug 23, 2020 1:51 am 
Offline
Addict
Addict

Joined: Thu Apr 18, 2019 8:17 am
Posts: 1006
Works now, although still slow to start on my PC. But it looks great and is very smooth!


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6 >>> OK <<<
PostPosted: Sun Aug 23, 2020 6:48 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2011 10:06 am
Posts: 866
Location: Denmark
Yes. Now it works. 8)

_________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.”
— Benjamin Franklin
Current configurations: Windows 10, Intel 6800K, GeForce Gtx 1060, 32 gb ram.


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6 >>> OK <<<
PostPosted: Mon Aug 24, 2020 7:37 am 
Offline
Addict
Addict
User avatar

Joined: Wed Apr 30, 2003 8:15 am
Posts: 1046
Location: Germany
Looks great now!

_________________
"Daddy, I'll run faster, then it is not so far..."


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6 >>> OK <<<
PostPosted: Mon Aug 24, 2020 7:53 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 214
looks great, but if I move the mouse, it collaps up the complete program.

Maybe a DPI problem? My dpi is 200%


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6 >>> OK <<<
PostPosted: Sun Aug 30, 2020 11:44 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Jul 09, 2015 9:07 am
Posts: 111
@ Cyllceaux:
can you test with normal DPI :


to see how it works, see my post 'Shader v2' :
https://www.purebasic.fr/english/viewtopic.php?f=36&t=75223

in Add3DArchive set the path to the script folder of "paysage-v6".
Add3DArchive(.../MaterialScriptsGeneric-2", #PB_3DArchive_FileSystem )
and compile in opengl

note : there are 2 shaders that don't work, I haven't adapted them yet.


Top
 Profile  
Reply with quote  
 Post subject: Re: Landscape v6 >>> OK <<<
PostPosted: Mon Aug 31, 2020 6:40 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 214
With normal DPI it workes like a charm... damn that looks great... I can watch this for hours.


And I like the F11 button.... I'm Jesus... I can walk on water :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye