I created one 3D object using Blender 2.66 and PowerVR Graphics SDK. I added the pod file and altered the hello-world project simply by replacing pod file name and node name.But the 3D object is not rotating. Is there any other changes tat i have to do in code? Is there any chance of error in pod file creation ? Thanks .
when you create a project in cocos3d the default pod file syntax is
[self addContentFromPODFile:#"hello-world.pod"];
you replace it with
where u use any node name
withName:#"HelloText"
[self addContentFromPODFile:#"hello-world.pod" withName:#"abc"];
And where you fild cc3meshnode replace getnodenamed with you set above
CC3MeshNode* hellotext = (CC3MeshNode*)[self getNodeNamed:#"abc"];
Related
I am trying to create a PostScript file using the Apache xml-graphics library. When I run under Java, it works fine.
But when I build for .NET using IKVM, then on a call to GlyphVector.getoutline(x, y), the code never returns.
This is happening when I:
AttributedString as = new AttributedString(buf.toString());
// call as.addAttribute() setting various TextAttribute for various ranges
FontRenderContext frc = graphics.getFontRenderContext();
LineBreakMeasurer lineMeasurer = new LineBreakMeasurer(as.getIterator(), frc);
TextLayout layout = lineMeasurer.nextLayout(Integer.MAX_VALUE);
layout.draw (graphics, left, line.getBaseline());
Any idea what can be going wrong?
thanks - dave
I want to record a video using JavaCV in JOGL (Java Binding for OpenGL).
This is the code to open the video file:
VideoWriter wv;
wv.open("video.avi", CV_FOURCC_DEFAULT, 30 , new Size(width, height), true);
The problem is that wv.isOpened() always returns false and no video file is created.
Things I've tried:
Change "video.avi" to "video.mp4"
Change CV_FOURCC_DEFAULT to -1
Change width, height, fps values
Anyone have achieved this?
My machine is running an Ubuntu 14.04 LTS with JavaCV v1.3.2 and JOGL v2.3.2.
When using OpenCV with C++ I had to define this constant:
const int VIDEO_CODEC_FOURCC = CV_FOURCC('M','J','P','G');
Try doing using the CV_FOURCC function and the use the .avi file extension as you had originally. Also try to make sure that the camera's frame dimensions are the same as the Size that you passed in your width and height.
I want to make Octave work only in terminal mode and options like
--no-gui
--no-window-system
-W
don't help me avoid ginput() command.
You can overload ginput at the beginning of the octave session (in your .octaverc file for instance)
ginput = #() warning("ginput has been disabled")
This is defining a new function with the same name. The original ginput will "screened" by this new function. But a clear ginput would get rid of the new definition. Then a new call to ginput would search for it in memory (where it is not anymore), then in the path. It will eventually find the original one.
If you control the installation of octave on your customer's machine, just get rid of ginput.m file.
I have created a Cocos3d iOS project and facing issue on texture display. My project has been kept under this link-> https://www.yousendit.com/download/UVJpWmdzTkwzMW40WjhUQw
If we run this project, we can see a sample house model output, where roof shows in plain white color in the house. But, actually i have added a roof texture in blender, and converted in pod. I don't know why the roof texture display not displaying when running the code in simulator. Could please download my sample project https://www.yousendit.com/download/UVJpWmdzTkwzMW40WjhUQw and suggest me. This project source also contains the .blend, .dae, .pod files which its using.
CC3PODResourceNode* podRezNode = [CC3PODResourceNode nodeWithName: #"RobotPODRez"];
podRezNode.resource = [IntroducingPODResource resourceFromFile: #"DieCube.pod"];
// If you want to stop the robot arm from being animated, uncomment the following line.
// [podRezNode disableAllAnimation];
podRezNode.shouldCullBackFaces = NO;
podRezNode.location = cc3v(0.0, 0.0, 0.0);
podRezNode.isTouchEnabled = YES;
[self addChild: podRezNode];
Your DAE files do not reference any textures:
TestHouse.dae:
<library_images/>
So, you must have not exported them from Blender.
I have 3 jars: jar1, jar2 and jar3, in the same path who can change in other pc (ex: c:\prova)
When I run jar1, it moves jar2 in the Windows Sturtup folder.
I want that jar2 simply activate jar3 at every windows startup, but of course it doesn't find jar3 who is remained in the first path.
So I want that jar1 pass a reference (in this case the path c:\prova) to the jar2, when moving it, or at least on the first call to it.
I find it difficoult because:
I can't write the path in a text file in jar2: text files in jars aren't writable.
I can't write the text file in the windows Startup folder: it will be opened at every win startup..
I can't pass the path as a parameter, it will be good for the first call but I can't store this value for the succesive calls.
Sorry for my bad english, thanks for any help!
To add the file Path.txt (with jar3's path) in jar2:
Runtime.getRuntime().exec("jar uf jar2.jar Path.txt");
To read the file in jar2 (Startup is my class name):
String s = "/Path.txt";
is = Startup.class.getResourceAsStream(s);
br = new BufferedReader(new InputStreamReader(is));
while (null != (line = br.readLine())) {
list.add(line);
}
Thank me!