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


« Reply #60 on: May 28, 2006, 08:56:56 PM »

I dont know either man..

Like I said,

I just formatted.. clean install of everything.. vs 2005....

unrar'd that rar.. and ran it and said invalid conversion of type string to Date.
Logged

- Working as Intended -
- FTW Studios Lead Developer -
- www.ftw-studios.com -
EagleEye
Customers
Community Member
*****
Posts: 345


WWW
« Reply #61 on: May 30, 2006, 02:09:48 AM »

A few questions...

1) Why would my cloud layer be so close to the ground?

I'm using a terrain heightmap that is not scaled on the Y axis... (it's scaled 100x100 on XZ, but Y isn't touched).  Half the map is "above the clouds".

ETA:  I have tried starting the terrain lower... like -100, -10, etc... on the Y axis... and that just causes me to see the bottom edge of the sky mesh...

2) The SKY_RADIUS value is set to 10... My camera's view frustum is set to 60 degrees, and 10000 on the far clip plane... How do these 2 values relate to each other?  If I set my SKY_RADIUS to 12, I can't see the textures at all... if I then set my far clip plane to 20000, I still can't see them... but if I go back to SKY_RADIUS 10, I can see the sky again...

3) Is there a newest version out there somewhere I can download, with bug fixes and improvements?
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!
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #62 on: May 30, 2006, 07:00:18 AM »

1) The demo is a test setup... you need to customize it to your needs. If your world goes higher and farther, then scale the cloud meshes.
Quote
That causes me to see the bottom edge of the sky mesh

There are several ways of preventing this : make an infinite-ish water plane around the land, make sure the landscape edges are higher than the rest like a valley, make the backdrop's color to the fog color, etc.

2) The frustum angle and plane distances do not relate. I don't get why your sky radius is set to 10... The default is 180, with a far plane of 20000, and all is well. Besides, you can tweak the code itself, play with how the sky radius affects the sky's actual size and whatnot.

3) No, I haven't worked on it since the initial release. What "bugs" need fixes though?
Logged

EagleEye
Customers
Community Member
*****
Posts: 345


WWW
« Reply #63 on: May 30, 2006, 10:14:56 AM »

Quote from: "Zaknafein"
1) The demo is a test setup... you need to customize it to your needs. If your world goes higher and farther, then scale the cloud meshes.
Quote
That causes me to see the bottom edge of the sky mesh

There are several ways of preventing this : make an infinite-ish water plane around the land, make sure the landscape edges are higher than the rest like a valley, make the backdrop's color to the fog color, etc.

2) The frustum angle and plane distances do not relate. I don't get why your sky radius is set to 10... The default is 180, with a far plane of 20000, and all is well. Besides, you can tweak the code itself, play with how the sky radius affects the sky's actual size and whatnot.

3) No, I haven't worked on it since the initial release. What "bugs" need fixes though?


Huh, I guess if I fix the sky radius thing, the cloud layer problem should go away too. Smiley

As far as bugs and such... some people have posted their own little fixes to various things, and you even mentioned a change to some background stuff that's inaccessible to us... so I figured there would be a new release?
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!
JohnB
Customers
Community Member
*****
Posts: 183


« Reply #64 on: May 30, 2006, 10:40:41 AM »

Hey Taneas, is it possible that having Option Strict On would cause that error?
That's just a guess, I'm not where I can try it right now.

John B.
Logged
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #65 on: May 30, 2006, 11:06:42 AM »

@EagleEye : Inaccessible? Well, the project is open source and commented for a reason... for users to play with it and add their own touches Tongue
So no, I don't think I'll release a new version any time soon. I've had my dose of sky programming Wink
Logged

EagleEye
Customers
Community Member
*****
Posts: 345


WWW
« Reply #66 on: May 30, 2006, 01:26:19 PM »

The inaccessible stuff I was referring to is evidently in this SkyShaderMath.dll?
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!
tweakbox
Customers
Community Member
*****
Posts: 1194


« Reply #67 on: May 30, 2006, 01:33:01 PM »

that isn't inaccessable.  If you had read, you would have seen that between the conversion I did from C# to VB.NET, I just wrapped the C# shader math class into a DLL to avoid having to convert it over to VB. So you still have everything, you just need to look in the right places.
Logged

I want to make a puzzle with like 40,000 pieces, and when it's done, it says "Go Outside"
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #68 on: May 30, 2006, 02:42:23 PM »

Also you could try JohnB's attempt at a VB.Net conversion, which is just as good as tweakbox, but he even translated the math code.
And of course the original C# version is in my signature, full source included.
Logged

EagleEye
Customers
Community Member
*****
Posts: 345


WWW
« Reply #69 on: May 31, 2006, 03:12:10 AM »

I could deal with using the C# code... no need to convert it really...

I'll have to look in to it later. Smiley

That bug you fixed in the math... have you updated the zip with that?
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!
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #70 on: May 31, 2006, 06:28:06 AM »

That bug was only present in JohnB's VB.Net conversion. The original C# version is fine...
Logged

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


« Reply #71 on: May 31, 2006, 12:36:03 PM »

I haven't put Zaknafein's fix in the project I posted yet but I'll try to do it later tonight.

John B.
Logged
Taneas
Customers
Community Member
*****
Posts: 159


« Reply #72 on: June 03, 2006, 04:11:08 AM »

*edit*

Never mind, it was the wind power..

But now I notice the time is off.. like..

Itll be sunrise coming up at 1am Smiley
Logged

- Working as Intended -
- FTW Studios Lead Developer -
- www.ftw-studios.com -
bloomk
Customers
Community Member
*****
Posts: 81


« Reply #73 on: June 03, 2006, 04:13:51 AM »

why do the coulds not move? lol
Logged

Street Challenge LLC
Multiplayer Drag Racing
http://www.streetchallenge.info/
EagleEye
Customers
Community Member
*****
Posts: 345


WWW
« Reply #74 on: June 06, 2006, 02:22:31 PM »

Quote from: "JohnB"
I haven't put Zaknafein's fix in the project I posted yet but I'll try to do it later tonight.

John B.


Just curious John, did you get around to doing this yet? 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!
JohnB
Customers
Community Member
*****
Posts: 183


« Reply #75 on: June 06, 2006, 09:33:42 PM »

I just uploaded the new file with Zaknafein's fix and a few other small tweeks.
You can download it here: http://members.cox.net/squadracorse/ZakSkyVB_V3.rar
Please let me know if you have any problems with it.

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


WWW
« Reply #76 on: January 25, 2008, 09:16:01 PM »

Broken link John... Sad
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!
JohnB
Customers
Community Member
*****
Posts: 183


« Reply #77 on: January 25, 2008, 10:34:20 PM »

Yeah - that was like 18 months ago and my ISP has changed since then.  I've still got the code though and would be glad to email it to you or something.

John B.
Logged
petroz
Community Member
*
Posts: 603


WWW
« Reply #78 on: January 25, 2008, 10:40:03 PM »

dust off this old topic with a bump, lol.

I'd love to see the code too, any lang is good.
Logged

Happiness is found in your kindness.

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


WWW
« Reply #79 on: January 26, 2008, 08:53:23 AM »

I found the old archive of the code on one of my network drives... but I don't have the actual .rar of it...

So if you want, send it to me ( eagleeye@eeisi.com ) and I'll host it on my web host so it'll always be available to everyone. 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!
Pages: 1 2 3 [4] 5
  Print  
 
Jump to:  

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