.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #11  
Old December 1st, 2007, 12:00 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

So am I.

If you make them small enough, you can use a cluster of sprites in an arc that hugs the planet surface, and then make them rotate around the z axis either with or against the planet's rotation.

My warppoint generator can be set up to do something somewhat like that, although only in thin bands without some custom tweaking...
Think something like the FQM black hole animation, except wrapped around a planet, and using a cloudy white colour instead of incandescent blackbody spectra.
Also, much MUCH smaller, and shallower, and not contiguous
Reply With Quote
  #12  
Old December 1st, 2007, 12:14 AM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

How do you control "rotate around the z axis" in the effects?
Reply With Quote
  #13  
Old December 1st, 2007, 12:58 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Code:
Effect 1 Rotate Z                                    := 0

Reply With Quote
  #14  
Old December 1st, 2007, 04:23 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

I get it... you mean rotate in position, where I meant rotate in orientation. Yeah, that would work for small sprites around a planet.

Anyway, I agree that wouldn't be practical for clouds, but it might be nice for asteroids or sub-tiny moons for huge worlds, or maybe planetary infestations.
Reply With Quote
  #15  
Old December 8th, 2007, 06:36 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Question:

I created an Effect, that I want to retain the original bitmap's color, without any transparency or 'brightness' recoloring. How do I do that?

Blend_Zero seems to result in a silhouette... and Blend_One seems to result in transparency.
Reply With Quote
  #16  
Old December 8th, 2007, 08:48 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

There are a whole bunch defined in the files (check the PDFs), perhaps you can find a mix of source and dest blends that will do something cool.
Reply With Quote
  #17  
Old December 9th, 2007, 12:47 AM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Destination blend one, source blend zero should do it.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
  #18  
Old December 9th, 2007, 01:28 AM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

dyslexically correct... Thanks!

Need to fix my graphics... black edges and not enough frames of animation.

But... I now have a small moon orbiting a planet... with an inclined orbital plane that matches the axial tilt of the planet.
Why 25 units = 90 degrees is a mystery to me.
Reply With Quote
  #19  
Old December 9th, 2007, 02:21 AM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

You're welcome.

Could be radians?...
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
  #20  
Old December 9th, 2007, 03:14 AM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Not even close to radians.
Planets unrotated are on their sides... the rotate X 50 flips them 180 degrees and the rotate z 25 makes them right side up (not sure why X isn't ignored and X set to -25).
Starting Rotate X := 50
Starting Rotate Y := 0
Starting Rotate Z := 25

Since the default rotation vector is 25 (90 degrees): I decided you could rotate X away from the vertical... and then add an X rotation vector that trigonometrically pairs with the Z rotation.

This solution works near perfectly... ~10 degree tilt
Starting Rotate X := 53
Starting Rotate Z := 25
Continual Rotation Vector X := 3
Continual Rotation Vector Z := 15.1

You can vary the direction of the tilt, messing with the signs and getting Y involved... However, I see no good way of distributing different tilts throughout the planet types.

The orbital plane for satellites is harder... I can't consistently predict whether the initial position is the low or high end of the incline.
But I got this one working for the above axial tilt:
Effect 2 Offset Position X := -19.65
Effect 2 Offset Position Z := 3.75
Effect 2 Rotate X := 0.000375
Effect 2 Rotate Z := 0.001965

If you like your trig, you can quickly figure out why 3 is paired with 15.1 and 19.65 is paired with 3.75.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.