Editing OGV

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 16: Line 16:
 
** User Roles: There are currently two kinds of users in OGV, admin and normal. By default any user that signs up is a normal user. One admin user with email id (test@example.com) is automatically created during the first start.   
 
** User Roles: There are currently two kinds of users in OGV, admin and normal. By default any user that signs up is a normal user. One admin user with email id (test@example.com) is automatically created during the first start.   
 
** Profile settings: Users can change their name, add a short bio and a profile picture to their profile. These settings are easily available at a url Root_url/settings where Root_url is as you might have guessed the main url where OGV is hosted.
 
** Profile settings: Users can change their name, add a short bio and a profile picture to their profile. These settings are easily available at a url Root_url/settings where Root_url is as you might have guessed the main url where OGV is hosted.
 
+
Login page of Online Geometry Viewer.
*** Login page of Online Geometry Viewer.
+
[[File:LoginOGV.png]]
[[File:LoginOGV.png|800px]]
+
Sign Up page of Online Geometry Viewer.
 
+
[[File:SignupOGV.png]]
*** Sign Up page of Online Geometry Viewer.
 
[[File:SignupOGV.png|800px]]
 
  
 
* '''Uploader: - ''' OGV uses CollectionFS a file handling package available at Atmosphere. Using this package, OGV uploader provides both ''drag 'n' drop'' as well as input field for uploading the model files.  
 
* '''Uploader: - ''' OGV uses CollectionFS a file handling package available at Atmosphere. Using this package, OGV uploader provides both ''drag 'n' drop'' as well as input field for uploading the model files.  
[[File:UploaderOGV.png|800px]]
+
[[File:UploaderOGV.png]]
  
 
* ''' File types supported:- ''' Currently OGV supports only .g file as input for uploader, in future it will support more of them.
 
* ''' File types supported:- ''' Currently OGV supports only .g file as input for uploader, in future it will support more of them.
  
 
* '''Model Meta:- ''' Each model can have a representative image, that will be shown in model feed. Along with that it can also have a description that can accompany the image. Users can also change name of the model. This editing option is visible to user immediately after user uploads the model.
 
* '''Model Meta:- ''' Each model can have a representative image, that will be shown in model feed. Along with that it can also have a description that can accompany the image. Users can also change name of the model. This editing option is visible to user immediately after user uploads the model.
[[File:ModelmetaOGV.png|800px]]
+
[[File:ModelmetaOGV.png]]
  
 
* '''Model Feeds: - ''' The front page of OGV is named as model feed. It consists of all the model posts. A model posts consists of representative image, model description, comments, lovemeter, model name and info about the user who uploaded it. Clicking on representative image takes user to the model viewer page.  
 
* '''Model Feeds: - ''' The front page of OGV is named as model feed. It consists of all the model posts. A model posts consists of representative image, model description, comments, lovemeter, model name and info about the user who uploaded it. Clicking on representative image takes user to the model viewer page.  
[[File:ModelfeedOGV.png|800px]]
+
[[File:ModelfeedOGV.png]]
  
 
* '''File manager:- ''' Every user has a file manager, where he can see and edit his own models.  
 
* '''File manager:- ''' Every user has a file manager, where he can see and edit his own models.  
[[File:FileManagerOGV.png|800px]]
+
[[File:FileManagerOGV.png]]
  
 
* '''Model Viewer:- ''' Model Viewer is a place where user actually sees his models in 3D. He can pan, rotate, zoom in and out and take a good look at model. Here you can also get '''embed code for models''' which then you can use to show models from OGV in your website.
 
* '''Model Viewer:- ''' Model Viewer is a place where user actually sees his models in 3D. He can pan, rotate, zoom in and out and take a good look at model. Here you can also get '''embed code for models''' which then you can use to show models from OGV in your website.
[[File:ModelViewerOGV.png|800px]]
+
[[File:ModelViewerOGV.png]]
  
 
==Technical Information==
 
==Technical Information==
 
As earlier pointed out Online Geometry viewer is built using Meteorjs and threejs. Meteorjs handles all the application logic whereas threejs handles the rendering part. There have been various other packages that have been used from atmospherejs. List of packages can be found in file named smart.json in the code.  
 
As earlier pointed out Online Geometry viewer is built using Meteorjs and threejs. Meteorjs handles all the application logic whereas threejs handles the rendering part. There have been various other packages that have been used from atmospherejs. List of packages can be found in file named smart.json in the code.  
 
 
=== Directory Structure ===
 
=== Directory Structure ===
 
At the top level meteor's default coding structure is used for separating server code, client code, collections etc. Inside client there are two folders one for templates and other views. Templates hold the html content while views hold the logic part, the JS content for client. All other folders are self-explanatory.  
 
At the top level meteor's default coding structure is used for separating server code, client code, collections etc. Inside client there are two folders one for templates and other views. Templates hold the html content while views hold the logic part, the JS content for client. All other folders are self-explanatory.  
 
 
=== Coding Standards ===
 
=== Coding Standards ===
 
It has been tried to follow BRL-CAD hacking guide as much as possible with exception in callback functions where the curly brackets '{' of the function that's being passed as parameter does not start in next line (as it's done with other functions).
 
It has been tried to follow BRL-CAD hacking guide as much as possible with exception in callback functions where the curly brackets '{' of the function that's being passed as parameter does not start in next line (as it's done with other functions).
Line 58: Line 54:
 
* Allow users to change the colors in model viewer.
 
* Allow users to change the colors in model viewer.
 
* Support more file formats.
 
* Support more file formats.
* Allow search and selective viewing of OBJ models.
 
* Ask for default account username and password during first run.
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)
Retrieved from "https://brlcad.org/wiki/OGV"