Information and discussion for custom maps and mods.
-
Sleipnir
- Posts: 783
- Joined: Wed Apr 10, 2002 11:52 pm
-
Contact:
Post
by Sleipnir » Wed Feb 27, 2013 9:13 am
Sleipnir wrote: ↑
A third approach would be to render the unit as <x>*<y>*<z> planes mapped with the different slices through the unit. This might actually be feasible.
I did a hacky test implementation of this approach, and it's certainly the way to go.
The average triangle count is now ~100 per unit, and this makes it much simpler to implement shadows (enable the stencil buffer, project each slice texture onto the ground plane, render shadow color).
-
Sleipnir
- Posts: 783
- Joined: Wed Apr 10, 2002 11:52 pm
-
Contact:
Post
by Sleipnir » Sun Mar 03, 2013 5:47 am
I have fixed the lighting problems and added dynamic shadows.
I need to do a bit more work to stop multiple shadows stacking (turrets, legs, etc) and fix some artifacts that can appear.

-
Matt
- Posts: 1024
- Joined: Tue May 01, 2012 12:21 pm
- Location: Germany
Post
by Matt » Sun Mar 03, 2013 8:09 am
Looks amazing. When I compare that with Red Alert 2 screenshots I get the impression that Westwood pixelated their Voxels artificially to better fit in to the rest of the sprite based assets. Your rendering looks more smooth and high resolution. Might also be that the comparison with Red Alert 1 terrain and SHPs triggers that feeling.
-
Dan9550
- Posts: 43
- Joined: Sat Aug 18, 2012 6:31 pm
Post
by Dan9550 » Sun Mar 03, 2013 9:23 am
Looks great and i agree they do look higher res than in Red Alert 2
-
Gangster
- Posts: 2
- Joined: Fri Aug 05, 2005 4:47 pm
Post
by Gangster » Sun Mar 03, 2013 10:51 pm
Sleipnir wrote: ↑
I need to do a bit more work to stop multiple shadows stacking (turrets, legs, etc) and fix some artifacts that can appear.
I like new lighting. I can imagine some better-detailed, community voxels may look just like pre-rendered SHP.

But I have question, it it posible to make turrets to cast shadow on hull (hull's onel on legs, etc)?
-
Sleipnir
- Posts: 783
- Joined: Wed Apr 10, 2002 11:52 pm
-
Contact:
Post
by Sleipnir » Mon Mar 04, 2013 1:24 am
Cmd. Matt wrote: ↑Your rendering looks more smooth and high resolution. Might also be that the comparison with Red Alert 1 terrain and SHPs triggers that feeling.
I think this is partly because of the higher resolution RA2 artwork and partly because of the OpenGL texture filtering. The difference is much less dramatic with pixel doubling disabled.
Gangster wrote: ↑But I have question, it it posible to make turrets to cast shadow on hull (hull's onel on legs, etc)?
It would be a simple tweak to draw the turret shadow as it would be projected onto the ground on top of the hull, but this would look wrong. Doing it properly (taking the hull geometry into account) would require a more complicated shadow model. I'd prefer to keep the initial implementation simple, but this is something which could (and probably should) be improved in the future.
-
-Jes-
- Posts: 72
- Joined: Tue Oct 23, 2012 1:57 pm
Post
by -Jes- » Tue Mar 05, 2013 6:42 am
Too bad the pixel doubling really draws out some of WW's poor voxelling; Check that row of black dots on the northwest facing V3.
Still, this is fantastic news.
-
salvakiya
- Posts: 36
- Joined: Fri Jul 27, 2012 5:26 am
Post
by salvakiya » Tue Mar 05, 2013 10:06 pm
-Jes- wrote: ↑Too bad the pixel doubling really draws out some of WW's poor voxelling; Check that row of black dots on the northwest facing V3.
Still, this is fantastic news.
EA made RA2... WW's last CnC game was Tiberium Sun
-
katzsmile
- Posts: 39
- Joined: Mon Sep 06, 2010 7:03 am
- Location: Arkhangelsk
-
Contact:
Post
by katzsmile » Wed Mar 06, 2013 3:04 am
RA2 was made by Westwood Pacific, which became EA Pacific and finally EALA. that was not true Westwood Studios. Just one affilated office with same name and logo, but team was different.
-
salvakiya
- Posts: 36
- Joined: Fri Jul 27, 2012 5:26 am
Post
by salvakiya » Wed Mar 06, 2013 4:39 am
Ok so yes technically I am wrong... However Westwood was bought out by EA in 1998. Tiberium sun was already in production before that. When Westwood had to answer to EA they began to be a little more sloppy because of new time constraints.
so yes it was Westwood but they were owned by EA. My bad.... You learn something new everyday XD
-
knivesron
- Posts: 93
- Joined: Wed Aug 10, 2011 5:05 am
Post
by knivesron » Wed Mar 06, 2013 7:45 pm
bloody ea. ruining good games for over 20 years. ... good games with ea on the name .... 0
-
BaronOfStuff
- Posts: 438
- Joined: Sun May 22, 2011 7:25 pm
Post
by BaronOfStuff » Wed Mar 06, 2013 8:27 pm
Not to mention they keep dishing out shovelware sports games, year-in-year-out, with minimal 'improvements' over the previous release.
I would feel sorry for the people who shell out on that crud, but fuck 'em. Doesn't bother me.
-
Sleipnir
- Posts: 783
- Joined: Wed Apr 10, 2002 11:52 pm
-
Contact:
Post
by Sleipnir » Fri Mar 08, 2013 3:14 pm
I've fixed the sprite/voxel z-sorting and have written Cg shaders, so the core project that I set out to do is essentially complete. There's a bit more refactoring needed, and then everything else is modifying existing engine features (making damaged vehicles smoke, supporting chronosphere preview, the aforementioned harvester dumbness, etc). These latter things are only worth fixing if this code is actually wanted upstream, so we'll see what happens once I get around to filing a pull request on this.
-
Matt
- Posts: 1024
- Joined: Tue May 01, 2012 12:21 pm
- Location: Germany
Post
by Matt » Fri Mar 08, 2013 6:18 pm
Still can't compile your voxels branch:
Code: Select all
OpenRA.Game/Graphics/WorldRenderer.cs(85,4): error CS0171: Field `OpenRA.Graphics.WorldRenderer.RenderObject.Sprite' must be fully assigned before control leaves the constructor
