Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 11:50 am
All times are UTC + 0
Shadow issues
Moderators: Global Moderators, OpenRA Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Jul 28, 2015 9:58 am    Post subject:  Shadow issues Reply with quote  Mark this post and the followings unread

So I finally got around to modding OpenRA & added some vxl units to RA1. All is working fine except that voxels have multiple shadows in multiple directions! I guess I'm missing something somewhere?

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Tue Jul 28, 2015 10:07 am    Post subject: Reply with quote  Mark this post and the followings unread

Show me codes. I guess you left a sprite-based render trait on the unit (is this release, playtest or bleed?) somewhere which still renders an additional shadow. While RenderVoxels do render shadow for all renderable sections, the light parameters are shared between them so that cannot cause it.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Jul 28, 2015 10:24 am    Post subject: Reply with quote  Mark this post and the followings unread

Latest playtest & I'm using a clone of the MIG code with this added:

Code:

   RenderVoxels:
      PlayerPalette:tibsun
      Scale: 1.8 #22
      LightPitch: 132
      LightYaw: 860
      LightAmbientColor: -0.2,-0.22,0,0,0,0
      LightDiffuseColor: 1,1,0.85,0,0,0   
   WithVoxelBody:


Removing RenderSprites makes it crash.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Tue Jul 28, 2015 10:46 am    Post subject: Reply with quote  Mark this post and the followings unread

Add a -WithFacingSpriteBody: to the unit. This removes the WithFacingSpriteBody from the inherited ^Plane and should fix the issue.

Oh wait, I looked at bleed. WithShadow is the cause on ^Plane. -WithShadow: onto your unit then.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Jul 28, 2015 11:02 am    Post subject: Reply with quote  Mark this post and the followings unread

Thx that fixed it, I'm not used to the Inherits system yet tho so I didn't check the ^Plane settings XP

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Tue Jul 28, 2015 11:07 am    Post subject: Reply with quote  Mark this post and the followings unread

Then you'll go mad, reaperr reorganized the mods since then to reduce cluttering - TS is now inheritance, inheritance everywhere! Very Happy

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Jul 28, 2015 1:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well I can see it being useful. D-day has multiple variants of some units, having one set of code used by them all will save time & space.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1502s ][ Queries: 11 (0.0088s) ][ Debug on ]