Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by HarvesteR · Apr 14, 2011 at 08:02 PM · cameraerrorrendertexturerender

Error node.m_Bounds.IsValid() on UnityEngine.Camera:Render()

Hello,

I'm getting this strange error at times...

Let me try to explain the setup...

There are three cameras set to render to texture. These cameras receive their render targets from a C# script.

Up until here it works.

The cameras are disabled, and told to render manually every half second or so. This is done in a coroutine that runs in a constant loop, updating the camera's position and rotation, rendering it, and yielding for the given amount of time, like this:

while(running)
{
    updateCamera();
    cameraRef.Render();
    yield return new WaitForSeconds(interval);
}

Ok, so what happens is that at given moments in the game (namely, when the player's ship explodes), the game will occasionally halt and produce that error message.

The trace points to the cameraRef.Render() line... which really isn't very informative...

The cameras have their transform updated based on values grabbed off the ship... so I was thinking that upon explosion, some values might become messed up (the ship isn't deleted when it explodes, it's just disabled)... So I commented out the cameraUpdate() call, which is where all the updation happens... No dice, it still fails occasionally when the ship explodes...

I'm starting to think it might somehow be related to the explosion effects themselves... the explosion effects are driven by the Detonator framework, and in fact, are just the default explosions that come with it... It sounds far fetched... but I don't know what to think anymore...

The texture cameras are set to cull every layer except one, and that doesn't include the explosions...

Any thoughts?

One more thing, which may or may not be related... If instead of manually rendering the camera, I just enable it from start and leave it to render by itself, I get another error saying screencoords[0] < 0 || screencoords[1] < 0 ...that happens right on pressing play...

Thanks in advance for any (really, any) help!!

Cheers

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by HarvesteR · Apr 14, 2011 at 08:17 PM

Hmm ok, I did some more testing...

It's definitely related to Detonator.

I commented out the call that spawns the explosion, and now there are no more occasional errors.

Granted, there are no more explosions either... but at least I've found the cause.

Hmm, now I guess it's down to editing Detonator's effects to see what exactly is causing it... I suspect that heatwave effect, which is a post-process shader thing... it might be somehow affecting the render cams, even though they're not supposed to render it.

Well, let's see what happens.

Cheers


Another follow up:

Very odd, but changing that render line to cameraRef.RenderDontRestore() apparently did something...

I exploded the ship a lot of times, trying to get that error to show again... It did once, but didn't halt the game... 30 crashes later, I couldn't reproduce the error again...

weird... very weird...

Cheers

Comment
Add comment · 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

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.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Render a GameObject/mesh to a -transparent- texture at run-time 2 Answers

RenderTexture and Readpixels android problem. 2 Answers

why does my temp camera only renders transparent objects ? 1 Answer

Render to texture with disabled camera allways generates error 0 Answers

Masking camera from rectangular to arbitrary shape 0 Answers


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