Sign in to follow this  
pradipb

Unity Mobile Software Renderer - Use of triangle strip

Recommended Posts

Hi, I am trying to develop a software renderer for mobile devices. My development language is C++. The target platform is BREW and target processor is ARM 7(no floating point support). I have thought of using triangle strips for rendering meshes. I was going through some articles on gamedev.net regarding use of triangle list over triangle strips : http://www.gamedev.net/community/forums/topic.asp?topic_id=456455 http://www.gamedev.net/community/forums/topic.asp?topic_id=300087 I know that although these articles have mentioned rendering using GPU (which is not available in my case), still i would like to know is there any problem using triangle strips for software rendering. The reason why i thought of using triangle strips is bcoz i can store previously transformed vertex positions. So i dont need to re-tranform the same vertex positions again for a new triangle which shares the same vertices. Pls do let me know any information regarding this. Thnkx in advance

Share this post


Link to post
Share on other sites
You don't need triangle strips for that and, in fact, triangle strips are generally not preferred anymore due to the difficulty of generating optimal strips from a mesh (and how little, if any, gain there is on modern graphics cards). Triangle strips have a small advantage only because they make more optimal use of the limited vertex cache.

What you really want to do in a software 3D engine is to avoid performing transformation on a vertex more than once. An indexed vertex buffer is a better choice for this. Instead of processing each triangle as 3 vertices, you put *all* vertices of a given mesh into a buffer and transform them all in one fell swoop. Then, triangles are defined by 3 indices into the output vertex buffer (which have already been transformed) so each triange is just 3 simple look-ups.


I recall this page having a lot of good information of software rendering and the software transformation pipeline in particular... The articles you want to read are "The Poly Pipeline" and "The way your 3D engine should be".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Forum Statistics

    • Total Topics
      628285
    • Total Posts
      2981836
  • Similar Content

    • By Simplepg
      https://play.google.com/store/apps/details?id=simple.gplay.GamesInABox
    • By Simplepg
      https://play.google.com/store/apps/details?id=simple.gplay.GamesInABox
    • By ForgedInteractive


      Who We Are
      We are Forged Interactive, a small team of like-minded game developers with the sole purpose of making games we love! We're a team of artists, animators, programmers, level designers, writers, composers, producers, and other creative minds. We want to make games that you, the modern gamer want to play! We hope to build a community that enjoys our games as much as we love creating them. With your feedback and support we will be able to achieve that.

      About the Game
      GAME NAME is a fun, action-packed army builder with unique characters, challenges and engaging levels. Set forth on an adventure to protect friends, family and countrymen from new adversaries. Once defeated your enemies turn coat and join you in your adventures. Players can enjoy a range of troops and abilities based on their gameplay style which become more important as maps introduce more challenging terrain, enemies and bosses. Strong orc knights, dangerous shamans, and even a dragon are out on the prowl. Knowing when to fight and when to run, and how to manage your army is essential. Your actions alone decide the fate of this world.

      Previous Work by Team
      Although we are working towards our first game as a team, our team members themselves have past experience in the industry.
      This includes members who have worked on titles including:
      Final Fantasy Kingsglaive, FIFA, Xcom 2 and Civilization.

      Who are we looking for? 3D Modellers Concept Artists Marketing Specialists Level Designer

      What do we expect? Reference work or portfolio. Examples what have you already done and what projects you have worked on academic or otherwise. The ability to commit to the project on a regular basis. If you are going on a two-week trip, we don't mind, but it would be good if you could commit 10+ hours to the project each week. Willingness to work with a royalty based compensation model, you will be paid when the game launches. Openness to learning new tools and techniques
      What can we offer? Continuous support and availability from our side. You have the ability to give design input, and creative say in the development of the game. Shown in credits on websites, in-game and more. Insight and contacts from within the Industry.
      Contact
      If you are interested in knowing more or joining. Please email or PM us on Skype. Myself or Colin will reply to you within 48 hours.

      E-mail: Recruitment@ForgedInteractive.com
      Skype: ForgedInteractive

      Regards,
      David and Colin

      Follow us on:

      Facebook: https://www.facebook.com/ForgedInteractive/
      Twitter: @ForgedInteract
      Youtube: https://www.youtube.com/channel/UCpK..._as=subscriber
      Reddit: https://www.reddit.com/user/Forged_Interactive/
    • By Eck
      I just saw their courses were knocked down to $10 each and figured I'd share the info here. They have stuff for Unity, Unreal, drawing, business, etc. I haven't used their stuff before, but the previews I looked at seemed pretty good and there is a user review system as well.
      https://www.udemy.com/courses/search/?q=Unity&src=ukw
      - Eck
       
    • By zizulot
      first and only logo , for now
  • Popular Now