• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Enradion · Dec 24, 2011 at 02:53 AM · 3dgraphicsvectormeshes

How to create Vectrex(Vector) look in games ?

Hi all,

I wonder if its possible to create Vectrex(Vector) look-alike games like "Vector Tanks" (see Youtube: http://www.youtube.com/watch?v=sza2ke2TEnM) with built-in tools in Unity ... I tried to paint the edges in my UV maps which looks crappy and I dont think that the Edge Detection FX in Unity Pro solves the problem.

So maybe one of you can tell me if & how the meshes must be prepared in a 3D program or/and if & how it can be done by code/tools/whatever (beside magic :) in Unity.

Thanx, Enradion

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Bunny83 · Dec 24, 2011 at 03:27 PM

Well, in the video it's not really a vector graphic. Real vector graphics doesn't really have triangles, just vectors. The "vector tanks" game also haa a transparent mesh with gets more opaque when you come closer. Probably done with a second shader pass.

However you could use the BarycentricWireframeUv1 - shader to render a mesh just as wireframe. You just have to use baricentric uvs. So each corner of each triangle should be either (0,0) , (0,1) or (1,0). Shared vertices could get you in trouble but it should be no problem to map all triangles to those coordinates. If you don't have shared vertices it's very easy, since every triangle is on its own.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Enradion · Dec 26, 2011 at 12:23 PM 0
Share

Thanks, I'll try this ;)

avatar image Bunny83 · Mar 12, 2013 at 02:49 PM 0
Share

Just in case you haven't seen it. I created a sample with different versions of the shader. I posted it already on another question and in the discussion page of the wiki page ;)

avatar image MD_Reptile · Mar 12, 2013 at 10:20 PM 0
Share

made this is no time:

http://imageshack.us/a/img191/6866/barycentricwireframe.png

and if anyone has any trouble getting uv's figured out, you just need each face to end up covering the entire UV image, like this:

http://imageshack.us/a/img195/8838/baryblend.png

Good stuff bunny, thanks :)

avatar image
2

Answer by Eric5h5 · Dec 26, 2011 at 04:06 PM

See here: starscenesoftware.com/tankzone.html

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MD_Reptile · Mar 12, 2013 at 11:51 PM 0
Share

I like the vecstrocity demos, but doesn't vecstrocity only really do 2d? I thought it would be limited in 3d rendering like this, atleast it would cause more overhead? I had thought it was like, a 2d plane, rendering "faux" 3d like old school 3d gfx

avatar image Eric5h5 · Mar 13, 2013 at 12:00 AM 0
Share

Clearly it doesn't only do 2D, as seen in the above link. ;) Lines can be occluded by objects in the scene and so on.

Vectrosity pic

avatar image MD_Reptile · Mar 13, 2013 at 02:45 AM 0
Share

Oh ok. I will look into your plugin eric, thanks!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Texture artifacts on device? 1 Answer

3D Assets on Some Computers, Not Others.. Direct3D? 0 Answers

how to fix fbx models 1 Answer

If I make a vector in Inkscape will it be a vector in unity? 1 Answer

How to edit one axis of the transform position 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges