Comments (2)
If I understood correctly the execution order is (probably with other things in the middle that I wasn't able to follow):
- FCameraCommandHandler::GetObjectInstanceMask
- FCommandDispatcher::Exec
- FPlayerViewMode::Object
- PaintObjects
and then PaintObjects calls FObjectPainter::Get().PaintRandomColors() which makes it seem like an object wouldn't have the same color across time.
from unrealcv.
Yes, the color is constant through time. See here. This code is a bit messy and needs to be cleaned up.
Getting colors for objects only needs to be executed once, so the speed does not matter much. Getting object mask needs to be executed every frame. All the performance bottleneck should be in here.
The execution order and the logic behind is: Every UnrealCV command will be executed by FCommandDispatcher. CommandDispatcher will decide which CommandHandler to use. For vget /camera/[id]/object_mask
, the FCameraCommandHandler will be used. If this is still unclear, I can point to the specific location in the code. I should write a development page in unrealcv.github.io
to document this.
PaintObjects happen when the game is initialized. PaintRandomColors
means iterating over all objects in the scene and assign it a color. If the scene is the same (no object is deleted or added), the color will be the same, no matter running the game how many times. PaintRandomColors
might not be a very good name.
from unrealcv.
Related Issues (20)
- The difference in pixel value in the screen shot.
- Build failed for UE4.27 HOT 7
- Can't Build for UE4.27 HOT 1
- How to get command output from Unreal - Bone locations
- Can't open the terminal in UnrealCV
- Problems detecting the position of the cameras, using Unreal engine 4.27 HOT 1
- Lighting needs to be rebuilt
- Assertion Error When Launching a Packaged Game for PlayerController
- Reflection Material Reflects Annotation in Lit Mode
- How to convert the depth into disparity? HOT 5
- New viewmode for albedo
- Dynamic camera position not reflecting HOT 1
- Getting vertex position of skeletal mesh HOT 2
- Can't Build for UE4.27 on Ubuntu HOT 1
- What are the internal parameters of FunsionCamSensor HOT 1
- Unrecognized image file extension for "npy" HOT 1
- 无法连接到('localhost', 9000) HOT 4
- deadlock of Euler Angle
- error Can not find a handler for URI 'vget /camera/0/lit' HOT 2
- Can you add support for Unreal Engine 5.3 or higher? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unrealcv.