WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-10-2012, 01:10 PM
Gekitatsu Gekitatsu is offline
Member
 
Join Date: Feb 2012
Posts: 3
viz.collision enabled lag

Setup

-City enviorment (Buildings/tress/cars/etc)(As 1.ive file)
-Mainview placed at a location in the city.

Goal

Move the camera around the city without being able to move through any objects in the city.

Problem

When I add viz.collision(viz.On) to enable collision for MainView my framerate drops to 22 from 60. Anybody have any idea how to bring my framerate back up to 60 with a collision enabled mainview?


-Note The mainview is not linked to any objects.
Reply With Quote
  #2  
Old 04-11-2012, 07:00 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,455
Having a dense mesh can slow things down to a crawl if you try to do collisions with it. Instead it's common to build a much lighter collision mesh (eg, 10k polygons) for collisions. Hide the visibility of the collision mesh and disable collisions on the dense visible mesh.
Reply With Quote
  #3  
Old 04-11-2012, 09:20 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Along with using a lower poly mesh for collision tests, you can also use the viz.OPTIMIZE_INTERSECT_HINT flag to speed up collision tests with a particular mesh:
Code:
model.hint(viz.OPTIMIZE_INTERSECT_HINT)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to verify if texbox is enabled disbeat Vizard 1 02-09-2011 01:20 PM
MainView.setPosition ignored when collisions are enabled vTony Vizard 1 09-25-2008 09:12 AM
collision with physics enabled joeymax Vizard 2 04-17-2008 02:49 PM


All times are GMT -7. The time now is 10:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC