How to bind texture image on Wired sphere using jogl? - jogl

I can able to create Wired Sphere using GLUT ,Now i want to bind one texture image on the sphere,can any one tell me how to do it.If u can pls provide me some code snippet?
regards,
s.kumaran.

For all who may later find this the same way I did...
Excellent tutorial here: http://www.land-of-kain.de/docs/jogl/

Related

Grid Snap tool in babylon js for proper wall construction

I would like to implement a snap grid function in my pointer, but it seems when I zoom in or out, the grid distance changes. Is there a solution for this?
Here is the playground: https://playground.babylonjs.com/#VHW8N9#2
I created the grid using this
scene.pick(Math.round(scene.pointerX/100)*100, Math.round(scene.pointerY/100)*100)
I already found a solution for this in this playground, https://playground.babylonjs.com/#VHW8N9#3.
If someone is facing the same issue, this may help.

Use satellite view from QtLocation as ground texture in 3D scene

I'm building a flight simulator in Qt, and I would like to display a satellite view on the floor. I saw that satellite views were accessible with QtLocation.
Is there a way to extract a picture from this plugin (giving center or corner coordinates and zoom level) so that I can use it to texture a fixed size plane?
For the moment, my code is full C++ (no qml), so if there is a way to do it that way, I'll be happy. But if the easiest solution is to switch my scene to qml, I can do that.
By the way, the source I plan to use is "World Imagery" from "esri", so perhaps there is a solution without QtLocation, I have no idea of what will be the simplest.
Thanks in advance !
I solved my problem by getting round it. I used the REST API of ArcGIS, making my program download tiles to the hard drive when a new one is needed and using this file as a texture. Using that, I do also have a cache functionality as suggested by #Florian Blume.

Rubberband Effect on Image using ASP.Net

I am trying to watermark an Image and works perfect and now I need to have my customers much more convinient so that I am planning to add a feasibility to the image watermarker.So I need some help!
I want to have an adorner control or somethng like the rubberband effect which has 4 0r 6 corners so that they can enlarge the text with that.
I have seen one of the articles in codeproject which is implemented with WPF as shown below.But I need to implement with my normal ASP.Net application.So how do I start with it?
Any help will be greatly appreciated!
have a look here:
http://html5.litten.com/moving-shapes-on-the-html5-canvas-with-the-keyboard/
with pure HTML5 canvas and JavaScript you can move a shape using the keyboard.
it's a starting point then you can imagine to extend it to support mouse gestures like you explained.

Tool to easily create image maps

I need to create an image map, but the shapes are quite complicated, and would take forever for me to do.
Is there any sort of tool that allows you to easily plot out the points for a map?
The Gimp: http://www.gimp.org/tutorials/Image_Map/ and http://docs.gimp.org/en/plug-in-imagemap.html
There are some online tools - http://www.maschek.hu/imagemap/imgmap, http://dhost.info/eleomap, http://www.mobilefish.com/services/image_map/image_map.php
This is actually the one place where it's still OK to use Dreamweaver. Creating complex image maps in DW is as simple as clicking around the outside of the shape to add points.

continuous line drawing in QT

I need to draw line continuously on the screen, output should be as it is in the video. Please check this link: http://www.youtube.com/watch?v=sYNIm210mJY.
Please suggest me which is the best method to implement it.
Please check the scribble example (located in Qt examples/widgets/scribble/) provided by Qt.
You'll find everything you need to get what you want !

Resources