Skip to content

REveCamera#40

Open
yuxiaolab wants to merge 3 commits intoalja:geo-25from
yuxiaolab:yuxiao
Open

REveCamera#40
yuxiaolab wants to merge 3 commits intoalja:geo-25from
yuxiaolab:yuxiao

Conversation

@yuxiaolab
Copy link
Copy Markdown

This Pull request:

Changes or fixes:

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

@yuxiaolab yuxiaolab requested a review from osschar as a code owner February 4, 2026 23:21
Comment thread graf3d/eve7/inc/ROOT/REveCamera.hxx Outdated
Comment thread graf3d/eve7/inc/ROOT/REveCamera.hxx Outdated
Comment thread graf3d/eve7/inc/ROOT/REveManager.hxx Outdated
Comment thread graf3d/eve7/inc/ROOT/REveManager.hxx Outdated
Comment thread graf3d/eve7/inc/ROOT/REveViewer.hxx Outdated
Comment thread graf3d/eve7/src/REveManager.cxx Outdated
REveCamera implement

added REveCamera class

implement isEveCameraPerspective

set REveCamera free as an independent class

implement camera on the client side. Also, the hardcoded test matrix is here

hardcoded matrix test

change the paths & env variables

myslef as the author

Remove commented lines with V1, V2

fCamera declaration does not need a comment.

Restore align.

include the REveCamera.hxx header in REveManager.cxx

GetCameraId() replaced with REveCamera* GetCamera() {return fCamera; }

SetCamBaseMtx override with string input

SetCameraByElementId function implement; Set default camera to kCameraPerspXOZ

save camera matrix implemented
// console.log("resetRenderer 2D scene bbox ex ey", sbbox, ex, ey, ", camera_pos ", posC, ", look_at ", this.rot_center);
}

this.controls.setFromBBox(sbbox);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuxiaolab

We need to introduce REveCamera::fIsInitialized bool member
If camera is not initialized the REveCameraControls position is set from bounding box

this.controls.addEventListener('change', this.render.bind(this));

// send to server when the client finishes camera setting
this.controls.addEventListener('end', () => {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@osschar @yuxiaolab
I'm not sure what would be best event listener.
In REveCameraControls the end event is displatched on MouseUp, TouchEnd, and on MouseWheel:
https://github.com/osschar/RenderCore/blob/main/src/contrib/REveCameraControls.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants