Wireframe and Solid mode

Posted on 2005-03-31
Medium Priority
Last Modified: 2013-12-06
Hi Guys

OK in my Opengl app i want to be able to view both wireframe and solid mode at the same time ...how do i do this? ....i know how to view each individually for eg glPolygonMode(GL_FRONT_AND_BACK, GL_LINE) but i want to view both modes at the same times.

Question by:nutterx
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

_corey_ earned 500 total points
ID: 13682260
If you want to render wireframe on top of solid, then you'll just have to render it twice.


Expert Comment

ID: 14331456
Ok this is pretty simple, when your render the scene first render it in solid mode

with glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
//render code

then render the same again but then in GL_LINE

//render code

by the way I don't know what kind of buffers you use so it can be when you use GL_FRONT with both it could work


Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question