473,657 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Add points into myCanvas3D (Java3D)

I have a canvas3d in Java3D, and I want to add some point.
I try to to this.

private void drawPoints() {
PointArray pti = new PointArray(2,Po intArray.COORDI NATES);
Shape3D shape = new Shape3D();
shape.removeAll Geometries();
BranchGroup ptiGroup = new BranchGroup();

pti.setCoordina te(0, new Point3d(3, 5, 23));
pti.setCoordina te(1, new Point3d(0, 5, 7));

shape.addGeomet ry(pti);
ptiGroup.addChi ld(shape);
ptiGroup.compil e();
universe.addBra nchGraph(ptiGro up);
}

But I don't see nothing. Why ?

____
FleX
May 1 '06 #1
0 2473

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4560
by: Hoagie | last post by:
The pain! I've looked over this a hundred times and I don't understand it! I'm new to Java3D, so hopefully someone can help me in this quick (most likely trivial error). I am drawing a QuadArray plane w/ the "stripes.gif" texture (from the tutorial) applied to it. I've drawn the plane to be 2 inches (-1,-1 to 1,1) and 1 inch (0,0 to 1,1). After creating the Shape3D object, I add it to the branch group then add that to the Simple...
2
4251
by: Wiseguy | last post by:
I'm an opengl programmer who recently started playing with java3d and the scene graph methodology takes a bit to get used to. I'm wondering if there are any OTHER comprehensive tutorials for java3d besides the one on the sun.com site. It would be nice to find something that can be downloaded and browsed offline. tanks
1
6219
by: Andre Bonin | last post by:
Hello, I have an application that uses Java3D and I would like it to make webstart-enabled. Which tags (or how do i go about) stating the dependancy of the Java3D api within my application's JLNP file? Thank you for your time.
4
2993
by: Kyler Laird | last post by:
I'm trying to do some georeferencing - using points of known location (ground control points, GCPs) on an image to develop a polynomial that can be used to approximate the locations of other points. I usually use the Python bindings to GDAL http://www.remotesensing.org/gdal/ to manipulate geospatial data but there are no Python bindings for GDALCreateGCPTransformer()....
9
2170
by: MStepansky | last post by:
Whats the difference between Javascript and Java3D? I mean can Javascript do like Java3D can? Or is Java3D on top of Javascript (the core, if thats what it is)? Then I should learn Javascript BEFORE Java3D, right? no? Worse, whats the difference between Java and Javascript? Whats the difference between Visual Basic and Visual Java++? (I still thought Visual Basic is like BASIC programming to allow you to write
8
1553
by: bevanward | last post by:
Hi all I have a large data set of points situated in 3d space. I have a simple primary key and an x, y and z value. What I would like is an efficient method for finding the group of points within a threshold. So far I have tested the following however it is very slow.
2
2078
awfulman
by: awfulman | last post by:
Hi, I am studying Java3D. I am not an experienced programmer and have no real programming education but I have some knowledge of graphics. I am familiar with POV-Ray that uses a kind of a programming language to render scenes too, in quite a similar way to Java3D, though not equal. I am really impressed by the opportunities that Java3d provides and I want to study it. But I am completely stuck in HelloJava3D.java . Of course I read the tutorial...
0
1075
by: Eyeinstyin | last post by:
There is some way to run java3d on webbrowser without j3d.I saw one example on net dont remeber the link but that ran a j3d applet on my webbrowser that didnot have j3d package installed.It actually loaded the jars on itz own.How do i do this.Load j3d jars from server and then webbrowser should use them to run j3d applet
2
2099
by: daschicken | last post by:
Hi guys, I'm not sure if theres anybody here with experience on this topic but ill give it a shot. Im lately facing some problems running several .jar files as Java WebStart jnlp. For this reason I tried to run a very basic .jar on my webspace which does well. But as soon as i try to usw .jar using the Java3D API, or just more complex it doesnt work with different errors. So before I go a bit deeper into my source I would like to...
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8319
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.