Showing posts with label 3d scanner output. Show all posts
Showing posts with label 3d scanner output. Show all posts

Friday, June 20, 2014

How to make a java program with output a triangle of numbers?




Lindsey


Hey everyone, I'm trying to help a friend with his program as he is struggling in his java class. it has been awhile since I've used java and while I am close, the math isn't lining up.

We are both really close.

We are trying to create a triangle that looks like this if a user enters 5:
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15


So far we got this:
1
2 6
3 7 8
4 8 9 11
5 9 10 12 15

Here is the code:

public static void triangle2(int n)
{

//check the input and return an error message if erronous input
if (n<1){
System.out.println("Please enter a value greater than or equal to 1.");
return;
}

int val=1;

for (int i=1; i<=n; i++)
{
System.out.printf("%3d",val);
int c = 1;
int y = i+(n-c);
for (int j=1; j<i; j++){
System.out.printf("%3d", y);
// y= y-j;
y = y+c;
c++;
}
System.out.println();
val++;
}
}

Thank you :D



Answer
Yes, you are close ... try ...

import java.util.Scanner;

public class triangle2
{
public static void triangle2(int n)
{

//check the input and return an error message if erronous input
if (n<1){
System.out.println("Please enter a value greater than or equal to 1.");
return;
}

int val=1;

for (int i=1; i<=n; i++)
{
System.out.printf("%3d",val);
int c = 1;
int y = i+(n-c);
for (int j=1; j<i; j++){
System.out.printf("%3d", y);
// y= y-j;
y = y+c;
c++;
}
System.out.println();
val++;
}
}

public static void main(String[]args) { // main function
int nsize = 0, i;

// Check for argument 1 number rows in triangle
if (args.length > 0) {
for(i=0; i<args[0].toString().length(); i++) {
if (args[0].substring(i,1).compareTo("0") >= 0 &&
args[0].substring(i,1).compareTo("9") <= 0) {
nsize = nsize;
} else if (!args[0].substring(i,1).equals("-")) {
nsize--;
}
}
if (nsize == 0) nsize = Integer.parseInt(args[0]);
}
if (nsize <= 0) {
Scanner inputscanner = new Scanner(System.in);
System.out.print("How many rows are there in your triangle? ");
nsize = inputscanner.nextInt();
}
triangle2(nsize);
} // end of main function

}

what are computer inputs and out puts divices mention atleast 8 on each.?




ymkumba





Answer
Text input devices-
Keyboard, Typing
Computer keyboard
Handwriting recognition
Optical character recognition
Speech recognition
Chorded keyboard
GKOS keyboard
Keyer
Telegraph key
Vibroplex


Pointing devices-
Computer mouse
Trackball
Touchpad
Pointing stick
Graphics tablet (or digitizing tablet)
Stylus
Light pen
Light gun
Cyberglove
Touch screen
Head pointer
Eye gaze/eye tracking

Gaming devices -
Joystick
Gamepad (or joypad)
paddle
Power Pad

Image, Video input devices-
Image scanner
3D scanner
Digital camera
Digital camcorder
Webcam
Digital video recorder

Audio input devices -
Digital dictaphone
Microphone
Digital audio recorder


Image, Video output devices-
Computer printer
Plotter
Computer display

Audio output devices-
Computer speaker




Powered by Yahoo! Answers

Saturday, February 8, 2014

On this link help find 16 comp. parts and it's function.need help?




babygirl


http://blackboard.wcpss.net/webapps/portal/frameset.jsp?tab=courses&url=%2Fbin%2Fcommon%2Fcourse.pl%3Fcourse_id%3D_7288_1
Then Click on: External Links
And scroll down to: Journey Inside
REMEMBER: THERE SHOULD BE 16 COMP. PARTS



Answer
1- keyboard - character input, typing.
2- mouse - pointer input, pointing and clicking
3- microphone - audio input, talking.
4- speakers - audio output
5- camera - visual input, pictures
6- monitor - visual output, "the screen"
7- optical drive - storage, audio input (CD), audio-visual input (DVD)
8- hard drive - storage
9- read-only memory (ROM) - storage
10- microprocessor - processing ("central processing unit, CPU)
11- Random Access Memory (RAM) - storage
12- Motherboard - connects the parts together.
13 - Scanner - visual input
14 - Printer - Hard copy output

And that's all the parts that are labeled. Calling out the 2nd speaker as "another speaker" seems cheesy. So I need to name some unlabeled parts.

15 - the "system" enclosure - contains the motherboard, storage and RAM, ROM, and processor.
16- Video card - visual output. Drives the display on the monitor screen. Modern ones also do some processing of the display data to relieve the CPU of the burden of trying to make video games be fast.

17- Bonus - Ribbon cable - connects the hard drive and optical drive to the motherboard.

Things not shown: (they aren't made by Intel, the site's sponsor, so they "aren't important").

18- Power cables. - Provides electricity to the devices so they can operate. I expect the setup shown probably has about 5 power cords (printer, scanner, system enclosure, speakers, monitor).
19- Surge suppressor - Provides outlets for all the power cables. Keeps power surges from frying the expensive computer equipment. A UPS (uninterruptable power supply) can look like a fat surge suppressor but has batteries in it to keep the computer running through brief power outages. A UPS generally provides the protection of a surge suppressor too. A power strip looks much like a surge suppressor, but only provides power outlets, no surge protection.
20- Monitor cable. - Connects the video card to the monitor. Sometimes a permanent part of the monitor, sometimes separate.
21- Network cable.- That web cam isn't going to be very interesting without the network connection.
22- Network devices - e.g. cable modem, router. Connects the computer to the Internet.

Help with VB6 to VB.NET conversion!?




RjSowden


I'm asking this because I don't know anything about VB6 (It was around before I was born), and theirs no point in me having to spend 6 weeks learning all the functions ect... when their are others with a much better understanding who will get it right first time.

I need to convert this code :

Private WindowWidth
Private WindowHeight
Private threshold
Private rgbvalue

Private Sub Form_Load()
'
WindowWidth = 320
WindowHeight = 240
myy = 1

End Sub

Private Sub Timer1_Timer()

Dim R As Long
Dim G As Long
Dim B As Long

Dim myx
Dim myy
Dim rgbvalue

threshold = Slider1.Value '1600000 '3876853 'Reverse BGR hex value for a red colour
Text1.Text = threshold
threshold = 1585276

myy = 1

mynumber = 1
mytextnumber$ = mynumber

Form1.Picture3 = LoadPicture("D:\Colin Ord\3d scanner\3D Scanner RT 2009\rgb.jpg")

mytextnumber$ = "D:\Colin Ord\3d scanner\3D Scanner RT 2009\" & "1.jpg"

On Error GoTo ErrorHandler

ErrorHandler:
If Err.Number = 53 Or 481 Then
'Debug.Print "Some problem with loading jpg image."
Resume Next
End If

Picture1 = LoadPicture(mytextnumber$)

For xcnt = 0 To WindowWidth
If Picture1.Point(xcnt, 30) > threshold Then '100000 Then
origin = xcnt

GoTo start:
End If
Next

start:

For myy = 0 To WindowHeight

For myx = 0 To WindowWidth
If Picture1.Point(myx, myy) > threshold Then '1000000 Then
GoTo here:
End If
Next

here:

Picture1.PSet (myx, myy), RGB(255, 255, 0)
Picture1.Line (0, 30)-(WindowWidth, 30), RGB(0, 255, 0)

If Form1.Picture3.Point(myx, myy) > 100000 Then
rgbvalue = Form1.Picture3.Point(myx, myy)
End If

rotx = origin - myx
roty = myy * 2
rotz = (rotx + myx) / 2

'Output file
Open "D:\Colin Ord\3d scanner\3D Scanner RT 2009\freescanRGB_object_01.asc" For Append As #1

'Read RGB values from hex pixel colour
R = &HFF& And rgbvalue
G = (&HFF00& And rgbvalue) \ 256
B = (&HFF0000 And rgbvalue) \ 65536

' Aligns scan with laser angle offset and skew
rot = 30 * 0.0174532 '57.29577951
rotzz = rotz * Cos(rot) - myx * Sin(rot)
rotxx = rotz * Sin(rot) + myx * Cos(rot)
rotyy = roty 'myy '/ 2

'create the vertex string - 'X Y Z R G B'
Print #1, ((rotxx + rotx) & " " & (rotyy / 2) & " " & ((rotzz * -2) * 2) & " " & R & " " & G & " " & B)
Close #1

'LASER LINE PREVIEW BOX- Draws each vertex with a red dot.
Picture2.PSet (myx, myy), RGB(255, 0, 0)
Next

End Sub

...Into VB.NET So I can tweak it and put it into my own application. I got it from text right off the internet, so I cant try to import it into .NET and let that convert it for me, because I cant save it. Thanks to everyone who can give advice, and I'll definitely give out a best answer. Thanks so much again in advance!
I do know that the Timer class doe's need a handler. I know VB.NET well. Picture3 defines a picture box control



Answer
It looks like either your code is not complete or there is a reference library that you're going to need for this.

Form1.Picture3 = LoadPicture("D:\Colin Ord\3d scanner\3D Scanner RT 2009\rgb.jpg")

LoadPicture is not defined anywhere in the code you posted. There is also nothing listed here to make the Timer1_Timer sub run.

You're going to have to find the missing parts to this project if you want to use it as written. Otherwise you're going to have to disect it pulling out bits & pieces to make it work for you.




Powered by Yahoo! Answers

Thursday, November 7, 2013

What software do I need to make cartoons?

3d scanner output
 on ... handyscan 3d scanners handyscan product comparison go scan 3d
3d scanner output image



Jimmy


I want to make animated cartoons, but am not sure what software I need. What software is best to draw the characters and backgrounds? Once I draw the characters do I then put them into Adobe Flash to make a cartoon?


Answer
You can use any of these FREE Cartoon Animation Softwares.........

Pencil : http://www.pencil-animation.org/
Pencil is an animation/drawing software for Mac OS X, Windows, and Linux. It lets you create traditional hand-drawn animation (cartoon) using both bitmap and vector graphics. Pencil is free and open source.

Synfig Animation Studio : http://synfig.org/
Synfig is a powerful, industrial-strength vector-based open-source 2D animation software package, designed from the ground-up for producing feature-film quality animation with fewer people and resources.2D Animation has traditionally been very expensive because every frame must be drawn by hand. Even with today´s digital inking and painting software, the process still relies on individuals hand-drawing each frame. This laborious task is called "tweening".Synfig eliminates the task of manual tweening, producing smooth, fluid motion without the animator having to draw out each frame individually. This allows you to produce 2D animation with fewer people while producing art of a higher quality.

Tapptoons Linetester : http://myweb.tiscali.co.uk/tapptoons/index.htm
The Tapptoons Linetester enables animators to use a scanner or video camera (with compatible capture card) to input animation images into a standard PC and edit their work, adding soundtrack and color if they wish and to output the result as a Windows AVI. Can be used for puppet animation as well as drawn animation.

eDrawings : http://www.edrawingsviewer.com/
eDrawings is a freeware utility which will give the user the power to view, create and share 3D models and 2D drawings. eDrawings offers unique capabilities like point-and-click animations that make it easy for anyone with a PC to interpret and understand 2D and 3D design data.





â«

How to make a java program with output a triangle of numbers?




Lindsey


Hey everyone, I'm trying to help a friend with his program as he is struggling in his java class. it has been awhile since I've used java and while I am close, the math isn't lining up.

We are both really close.

We are trying to create a triangle that looks like this if a user enters 5:
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15


So far we got this:
1
2 6
3 7 8
4 8 9 11
5 9 10 12 15

Here is the code:

public static void triangle2(int n)
{

//check the input and return an error message if erronous input
if (n<1){
System.out.println("Please enter a value greater than or equal to 1.");
return;
}

int val=1;

for (int i=1; i<=n; i++)
{
System.out.printf("%3d",val);
int c = 1;
int y = i+(n-c);
for (int j=1; j<i; j++){
System.out.printf("%3d", y);
// y= y-j;
y = y+c;
c++;
}
System.out.println();
val++;
}
}

Thank you :D



Answer
Yes, you are close ... try ...

import java.util.Scanner;

public class triangle2
{
public static void triangle2(int n)
{

//check the input and return an error message if erronous input
if (n<1){
System.out.println("Please enter a value greater than or equal to 1.");
return;
}

int val=1;

for (int i=1; i<=n; i++)
{
System.out.printf("%3d",val);
int c = 1;
int y = i+(n-c);
for (int j=1; j<i; j++){
System.out.printf("%3d", y);
// y= y-j;
y = y+c;
c++;
}
System.out.println();
val++;
}
}

public static void main(String[]args) { // main function
int nsize = 0, i;

// Check for argument 1 number rows in triangle
if (args.length > 0) {
for(i=0; i<args[0].toString().length(); i++) {
if (args[0].substring(i,1).compareTo("0") >= 0 &&
args[0].substring(i,1).compareTo("9") <= 0) {
nsize = nsize;
} else if (!args[0].substring(i,1).equals("-")) {
nsize--;
}
}
if (nsize == 0) nsize = Integer.parseInt(args[0]);
}
if (nsize <= 0) {
Scanner inputscanner = new Scanner(System.in);
System.out.print("How many rows are there in your triangle? ");
nsize = inputscanner.nextInt();
}
triangle2(nsize);
} // end of main function

}




Powered by Yahoo! Answers