[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Anisoptera Games - View topic - Are ships made of out of Vectors or Meshes?
View unanswered posts | View active topics It is currently Mon Jul 13, 2020 12:17 am



Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Are ships made of out of Vectors or Meshes? 
Author Message
User avatar

Joined: Wed Apr 16, 2014 4:52 am
Posts: 142
Reply with quote
Hmm, I never noticed any of that artifacting corner thing you mention, but what you say does make sense logically.

I actually feel really excited when you mentioned shaders, I hadn't thought of those before or how flexible can they be for something that I normally would have expected to be done via vector graphics or 3d meshes. This information really opens up new stuff for me to look for, so thank you for that. : )

And if the shields really are made via shaders, then seems like pixel shaders are pretty performance efficient too, since I can have hundreds of shields active in Reassembly and still run at a smooth fps count. This is really worth looking into! : D


Sat Jan 30, 2016 9:43 am
Profile
User avatar

Joined: Tue Dec 22, 2015 9:44 pm
Posts: 668
Reply with quote

_________________






Sat Jan 30, 2016 9:53 am
Profile
User avatar

Joined: Wed Apr 16, 2014 4:52 am
Posts: 142
Reply with quote


Sat Jan 30, 2016 9:56 am
Profile
User avatar

Joined: Wed Apr 16, 2014 4:52 am
Posts: 142
Reply with quote


Sat Jan 30, 2016 9:58 am
Profile
Site Admin
User avatar

Joined: Thu Jan 16, 2014 2:45 pm
Posts: 562
Location: Los Angeles
Reply with quote
You pretty much figured it out but just to give a definitive answer: it ultimately draws everything with polygons via OpenGL. The shields are a bunch of very narrow triangles that meet in the center, and the number of vertices varies depending on the visual size of the shield. In a sense I just wrote a simple vector graphics API on top of OpenGL. The "meshes" are all generated by the game. It could conceivably texture map the blocks (or anything else).

Particles are drawn using a special shader - just the center point and the size/color, starting position and velocity are passed to the shader. The code for this (and the vector drawing stuff) are actually on my github account if you want to see the details. See Graphics.h/cpp and Particles.h/cpp and data/shaders.lua. https://github.com/manylegged/outlaws-core

The auras are Worley noise, aka a voronoi diagram. Also drawn using a special shader (ShaderWorley). It divides the screen up into rectangles are renders each separately - turn on "debug WORLEY" to see it go.

The bloom and some dithering stuff to reduce color banding are fullscreen postprocessing shaders.

I feel like there is a lot more interesting/sophisticated stuff that could be done here with regard to graphics. I wish the backgrounds felt a little more 3d or something. Some kind of screen-warping postprocessing effects could be really cool for certain weapons.

I think it would be possible to do something like Reassembly (minus postprocessing and less particle effects) with completely software rendering, especially if you were OK with reducing the resolution a little bit. It would take a significant chunk of the CPU on older machines though, leaving less room for physics and AI. GPUs are really ubiquitous these days though, it's pretty much impossible to buy a computer without a GPU, even low end smartphones and 10 year old PCs have GPUs.


Tue Feb 23, 2016 11:11 pm
Profile
User avatar

Joined: Fri Jan 24, 2014 10:11 pm
Posts: 1295
Location: Ames, IA
Reply with quote
Geometry wars 3D gets away with "warping" space around ships and bullets by incorporating a background mesh that warps when an entity passes over it, could be interesting to see in reassembly.

_________________



Wed Feb 24, 2016 7:20 am
Profile
User avatar

Joined: Sat Jun 06, 2015 3:04 am
Posts: 457
Reply with quote

_________________
https://discord.gg/BM4eeqS
http://reassemblyerect.site


Wed Feb 24, 2016 12:57 pm
Profile

Joined: Thu Jan 14, 2016 2:21 pm
Posts: 94
Reply with quote


Wed Feb 24, 2016 1:12 pm
Profile
User avatar

Joined: Sat Jun 06, 2015 3:04 am
Posts: 457
Reply with quote

_________________
https://discord.gg/BM4eeqS
http://reassemblyerect.site


Wed Feb 24, 2016 7:16 pm
Profile
User avatar

Joined: Sun Apr 12, 2015 3:13 am
Posts: 283
Reply with quote
http://steamcommunity.com/sharedfiles/f ... =467290220

;p

_________________
Using Beta, always! (Well, for Reassembly)
(Also known as GATC on Steam)


Thu Feb 25, 2016 3:22 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: simoneym3 and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software