Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: 1 ... 3 4 [5]
  Print  
Author Topic: Zak's HLSL Sky Demo in VB.NET (Download)  (Read 8254 times)
JohnB
Customers
Community Member
*****
Posts: 183


« Reply #80 on: January 26, 2008, 12:44:39 PM »

Just sent you the files EE.  I made a few small changes just so it would work with the current TV DLL, otherwise it's exactly the same as it was.  Last time I asked him, Zak said it was fine to host the project so I'd guess that's still the case.

John B.
Logged
EagleEye
Customers
Community Member
*****
Posts: 345


WWW
« Reply #81 on: January 26, 2008, 02:46:11 PM »

Yeah, in my experience, Zak has always been cool that way. Smiley

I am putting it up at www.eeisi.com/tvprojects/ZakSkyVB_V4.rar
Logged

Vermund - A Matter of Life and Death MMORPG
My TV Projects - EEGUI (A GUI for TV6.5 with .NET 2005+), Material Editor, tutorials, and more!
Lyrical
Customers
Community Member
*****
Posts: 465


WWW
« Reply #82 on: January 30, 2008, 06:26:52 AM »

Hi EagleEye,

  I have been looking at the ZakSkyVB demo from you last post and is does look amazing.
complicated but very interesting. I hope Zak doesn't mind i have ported this to C# manually NOT with a converter.

  Here is the link if you want to add it to your links.

http://www.fastrightstudios.co.uk\tv3d\zakskycs.zip

Its been fun converting this and i've learn't alot along the way.

Thank you Zak yet again and
Thanks EagleEye for posting the VB version.
Logged
ZaPPZion
Community Member
*
Posts: 516


« Reply #83 on: January 30, 2008, 10:37:47 AM »

hmmm link is invalid, fixed that: http://www.fastrightstudios.co.uk/tv3d/zakskycs.zip
Logged

Check out my website: www.bartkuipers.com
JohnB
Customers
Community Member
*****
Posts: 183


« Reply #84 on: January 30, 2008, 11:37:47 AM »

That's great Lyrical.  Not to knock your efforts or anything but I still have a copy of the original C# code Zak wrote (and my VB port is based on).  I'd be happy to mail the C# code to you if you want to look it over.  Maybe EagleEye could even host it for us.

John B.


(Edited to clarify what I was trying to say. :-D)
« Last Edit: January 30, 2008, 12:08:30 PM by JohnB » Logged
EagleEye
Customers
Community Member
*****
Posts: 345


WWW
« Reply #85 on: January 30, 2008, 09:39:54 PM »

hahaha, originally written in C#, it was ported to VB, and then re-ported back to C#.  Classic. Smiley
Logged

Vermund - A Matter of Life and Death MMORPG
My TV Projects - EEGUI (A GUI for TV6.5 with .NET 2005+), Material Editor, tutorials, and more!
Lyrical
Customers
Community Member
*****
Posts: 465


WWW
« Reply #86 on: January 31, 2008, 05:44:05 AM »

hi all,
    lol yeah i realised this was originally a c# version when i was searching through the forums yesterday, it was still a good excercise and i learn't from Zaks code. Its always good practice converting programs and i like doing it.


Logged
Raine
Customers
Community Member
*****
Posts: 1212


« Reply #87 on: January 31, 2008, 05:46:29 AM »

hi all,
    lol yeah i realised this was originally a c# version when i was searching through the forums yesterday, it was still a good excercise and i learn't from Zaks code. Its always good practice converting programs and i like doing it.

I concur
Logged

jviper
Community Member
*
Posts: 2058

Discipline in training


« Reply #88 on: January 31, 2008, 06:55:43 AM »

Funny thing is I have not yet found the link to the VB.NET code that is actually up. Oh well. I need practice in C# anyway. Perhaps dare I convert it back to VB.NET  Grin
Logged

JAbstract.....Don't just imagine, make it happen!
Lyrical
Customers
Community Member
*****
Posts: 465


WWW
« Reply #89 on: January 31, 2008, 08:24:58 AM »

hi jviper,

  here are the 2 version so far

VB.NET
http://www.eeisi.com/tvprojects/ZakSkyVB_V4.rar

C#.NET
http://www.fastrightstudios.co.uk/tv3d/zakskycs.zip

BTW: I do not take any credit for the code apart from the conversion to C# , i only
     converted it, therefore, the actual credit still belongs to Zaknefien.
« Last Edit: January 31, 2008, 08:27:15 AM by Lyrical » Logged
JohnB
Customers
Community Member
*****
Posts: 183


« Reply #90 on: January 31, 2008, 10:58:15 AM »

Ditto what Lyrical said, it's Zak's code - I just changed the language.

John B.


PS - Totally agree that porting code is a good way to learn it.
Logged
nomadsoul
Customers
Community Member
*****
Posts: 141


« Reply #91 on: February 02, 2008, 03:56:50 AM »

YEAAAAA it's so cool i will put it in my game with the great zak ocean shader ! thanks a lot !!!!!!

 Grin

Logged
petroz
Community Member
*
Posts: 603


WWW
« Reply #92 on: February 04, 2008, 06:42:21 PM »

port of a port is kinda funny. Is there a link for the original c# version. Thinking I might port it to C++ if i get the time.

-Petroz
Logged

Happiness is found in your kindness.

Project: BattleSpace
Gallery URL:
http://s235.photobucket.com/albums/ee185/PeterStirling
Zaknafein
Customers
Community Member
*****
Posts: 2935


WWW
« Reply #93 on: February 05, 2008, 02:16:41 PM »

Sure, here it is :
http://www.zaknafein.hjcrusaders.com/samples/HLSLSkyDemo/HLSLSkyDemo.zip

This is old though, it probably won't compile as-is. The usual fixes... TVLandscape needs to use Scene.CreateLandscape, remove the beta key stuff, and probably some methods changed names.

And ye olde manual too :
http://www.zaknafein.hjcrusaders.com/samples/HLSLSkyDemo/Manual/manual.htm
Logged

JohnB
Customers
Community Member
*****
Posts: 183


« Reply #94 on: February 05, 2008, 02:26:15 PM »

Thanks Zak!

John B.
Logged
Soganatsu
Customers
Community Member
*****
Posts: 62


« Reply #95 on: November 30, 2008, 03:54:22 PM »

hey there Wink sry to ressurect this topic but I got a little (probably stupid) question regarding GameTime and the actual visible Time.

In the original sample I downloaded the sun rises at 11 AM and sets at about 11 PM. Now my question's pretty simple: How can I change that behaviour? ^^

I've already been looking into Latitude and I guess it's gotta have to do something with it but I can't seem to find out which value to give it.

Also I've got the problem that in the project I implemented the sky display works fine except for sun/moon and cloud layer not being displayed. All Textures seem to load fine, shaders should work as well.

Strange thing is: Even in Wireframe-Mode I can't see the cloud mesh..

Hopefully someone can help me Wink

Cya,
Philipp
Logged
StakFallT
Community Member
*
Posts: 191


« Reply #96 on: November 30, 2008, 04:05:10 PM »

Well from what I learned, The -original- position of the sun is based on time, but after that, everything and I mean everything (Right down to the shaders coloring the sky) is based off of the angle of the sun, at least from what I seen. There's one routine in general that kind've speaks to this and the main line is something along the lines of Sun.Azimuth, after that one line you can see everything kinda works off of that, meaning if that's off then everything down below it is too.

So to adjust the time for sunset and sunrise you would probably have to go back into the angle calculation of the sun or just do a quick dirty way of doing it by directly adjusting the radius of the sun prior to everything being based off of it -- or.. now that I think about it, I think there was a sun_rise sun_set const that is at the top of the code, you could modify that (It'd be kinda backwards since those consts are of angles I think) but it might be something to look into. Hope that helps!
Logged
Soganatsu
Customers
Community Member
*****
Posts: 62


« Reply #97 on: December 01, 2008, 12:25:29 PM »

Damn am I stupid xD ^^
I accidently left over an Exit Sub Statement in the Render Code right after the Atmosphere's been rendered (Debugging Purposes) lol Well, Could, Sun/Moon Display works now Wink

Thx very much!
Logged
Pages: 1 ... 3 4 [5]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks