• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Skybox with bottom

Status
Not open for further replies.
Level 14
Joined
Apr 20, 2009
Messages
1,543
You mean as in being abled to see sky underneath your terrain?
You might want to use a custom plane model with a animated sky texture on top of it which then needs to be lowered with control + page down.

I'm doing the same thing for my own terrain:

skyi.jpg


By the way did you see my last post in your water texture thread?
That might be a good solution to your water problem :)
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
A plane underneath it's a nice solution if you are doing showcase terrain, however the problem arises when are you playing the map, because when you go out of visible range of center of the doodad, it becomes invisible, hence black.
Actually no, it doesn't... That's a visual anomoly that appears to be caused by scaled up doodads from the object editor.
As long as you increase the actual scale of the model it does not dissapear.

This is because when you scale a model up in the object editor and your camera goes over the edge of the actual model size it dissapears, so increasing the actual model size takes care of this problem.

I can set my camera to any position in my map while still being abled to see the sky underneath my terrain.

Give it a try if you don't beleave me, my map is fully playable at this moment... ;)

(Also, don't forget to set the far-z really high for the player's camera)

About water problem, I kinda gave up, it's not possible to do in the way i wanted.
That's a shame, I'm gonna give it a shot myself later on though.
Some alpha layers might make a nice see-throughable sea, which can possibly make it look more realistic ^.^

EDIT: yay 900th post xD
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Hmmm, that's odd since for me it does seem to work.

example1ko.jpg

example2o.jpg

example3x.jpg


This seems to work for every camera position for me...



Are you sure it's not the far-z of your camera?

Could you show a screenshot of the bug that you are experiencing? You're saying that it turns out black? So it doesn't dissapear or....?

And no I won't stop posting, I'm even learning exams for my application design education while I'm posting. This takes up a really small amount of time for me so it's not such a big deal for me :)

Try doing something like:

JASS:
function Trig_far_z_Actions takes nothing returns nothing
    local integer i
    set i = 0
    loop
        exitwhen i == 12
        if (GetLocalPlayer() == Player(i)) then
            call SetCameraField(CAMERA_FIELD_FARZ, 799999999999.00, 0.30)
        endif
        set i = i + 1
    endloop
endfunction

//===========================================================================
function InitTrig_far_z takes nothing returns nothing
    set gg_trg_far_z = CreateTrigger(  )
    call TriggerRegisterTimerEvent(gg_trg_far_z, 0.30, true)
    call TriggerAddAction(gg_trg_far_z, function Trig_far_z_Actions)
endfunction

I know 799999999999.00 is an odd number, but I have my reasons :p
It seemed to bug on insanely high amounts.
I'm still trying to find the highest number possible...
 
Last edited:
Level 14
Joined
Apr 20, 2009
Messages
1,543
Check your PM.
I have no time to create a demo, sorry :S

Ow and b.t.w. I haven't scaled up the actual model size of the stalagmites yet, so they still seem to have the dissapearing bug.
 
Status
Not open for further replies.
Top